Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.24 KB

virtual_devices.adoc

File metadata and controls

68 lines (44 loc) · 2.24 KB

UI Tests on Virtual Devices

To ensure that your Android app runs seamlessly on the exact devices your user base owns, buddybuild supports numerous mobile devices across different OS versions and vendors. Select which virtual devices to run your UI tests against, and buddybuild automates the rest!

Note

Why run UI tests on virtual devices?

Depending on the set of tests, running UI tests on virtual devices might lead to faster test runs. Virtual devices are created on-demand, and as such, there is essentially no contention for a device resource.

Virtual devices are not charged per minute, so using virtual devices is a good compromise in terms of speed, results and cost.

Setting up default UI tests on virtual devices

Setting up default UI tests on virtual devices will apply to all branches.

Start by clicking on App Settings.

The buddybuild dashboard

In the left navigation, click on Test settings.

The Test settings button

Next, locate Run UI tests on virtual devices and click Configure.

The Default test configuration screen

Turn on UI tests on virtual devices, then select the variant you would like to run UI tests against.

Selecting a variant for UI testing

Lastly, select the virtual devices you want to run UI tests on.

The Select virtual device screen

Run UI tests on virtual devices for a specific branch only

You can also run UI tests on virtual devices for a specific branch by creating a branch-specific override.

Under Override build configuration, click Add a branch and select the branch you would like to run UI tests on virtual devices for.

The branch override dropdown menu

Select Run UI tests on virtual devices from the dropdown, then click the Configure button.

Enabling UI tests for a specific branch

You can now select the virtual devices you want to run UI tests on for your selected branch.