{"_id":"5911fffaace1a30f00e070fb","category":{"_id":"59124949de13f61900336a7a","project":"55b2d5baa74a380d00e290c4","__v":0,"version":"590a04f2ed80861900cbc737","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-05-09T22:57:13.235Z","from_sync":false,"order":11,"slug":"tests-android","title":"Tests (Android)"},"__v":0,"parentDoc":null,"project":"55b2d5baa74a380d00e290c4","user":"55b2d5626862a10d00887af9","version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-09T17:44:26.489Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Ensure 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 will automate the rest!\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Why run UI tests on virtual devices?\",\n  \"body\": \"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.\\n\\nVirtual devices are not charged per minute, so using virtual devices is a good compromise in terms of speed, results and cost.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Setting up default UI tests on virtual devices\"\n}\n[/block]\nSetting up default UI tests on virtual devices will apply to all branches. \n\nStart by clicking on **App Settings**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/9cbbe10-Builds_-_Settings.png\",\n        \"Builds - Settings.png\",\n        1500,\n        483,\n        \"#ecf1f2\"\n      ]\n    }\n  ]\n}\n[/block]\nIn the left navigation, click on **Test settings**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/f58aa2e-Tests_-_menu.jpg\",\n        \"Tests - menu.jpg\",\n        1500,\n        606,\n        \"#e9f0f1\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, locate **Run UI tests on virtual devices** and click **Configure**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/a03e81f-Tests_-_virtual_configure.jpg\",\n        \"Tests - virtual configure.jpg\",\n        1500,\n        606,\n        \"#d2d8dd\"\n      ]\n    }\n  ]\n}\n[/block]\nTurn on **UI tests on virtual devices**, then select the **variant** you would like to run UI tests against.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/f79e44f-Tests_-_virtual_select_variant.jpg\",\n        \"Tests - virtual select variant.jpg\",\n        1500,\n        543,\n        \"#d3d6d8\"\n      ]\n    }\n  ]\n}\n[/block]\nLastly, select the virtual devices you want to run UI tests on.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/e621e1e-Tests_-_virtal_select_device.jpg\",\n        \"Tests - virtal select device.jpg\",\n        1500,\n        543,\n        \"#eef0f0\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Run UI tests on virtual devices for a specific branch only\"\n}\n[/block]\nYou can also run UI tests on virtual devices for a specific branch by creating a **branch-specific override**.\n\nUnder Override build configuration, click **Add a branch** and select the branch you would like to run UI tests on virtual devices for.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/999228a-Builds_-_Branch_override_-_1.png\",\n        \"Builds - Branch override - 1.png\",\n        1500,\n        555,\n        \"#d4dde2\"\n      ]\n    }\n  ]\n}\n[/block]\nSelect **Run UI tests on virtual devices** from the dropdown, then click the **Configure** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/7ff9c3f-Tests_-_virtual_branch_override.jpg\",\n        \"Tests - virtual branch override.jpg\",\n        1500,\n        543,\n        \"#1395e1\"\n      ]\n    }\n  ]\n}\n[/block]\nYou can now select the virtual devices you want to run UI tests on for your selected branch.","excerpt":"","slug":"ui-tests-on-virtual-devices","type":"basic","title":"UI Tests on Virtual Devices"}

UI Tests on Virtual Devices


Ensure 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 will automate the rest! [block:callout] { "type": "info", "title": "Why run UI tests on virtual devices?", "body": "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.\n\nVirtual devices are not charged per minute, so using virtual devices is a good compromise in terms of speed, results and cost." } [/block] [block:api-header] { "title": "Setting up default UI tests on virtual devices" } [/block] Setting up default UI tests on virtual devices will apply to all branches. Start by clicking on **App Settings**. [block:image] { "images": [ { "image": [ "https://files.readme.io/9cbbe10-Builds_-_Settings.png", "Builds - Settings.png", 1500, 483, "#ecf1f2" ] } ] } [/block] In the left navigation, click on **Test settings**. [block:image] { "images": [ { "image": [ "https://files.readme.io/f58aa2e-Tests_-_menu.jpg", "Tests - menu.jpg", 1500, 606, "#e9f0f1" ] } ] } [/block] Next, locate **Run UI tests on virtual devices** and click **Configure**. [block:image] { "images": [ { "image": [ "https://files.readme.io/a03e81f-Tests_-_virtual_configure.jpg", "Tests - virtual configure.jpg", 1500, 606, "#d2d8dd" ] } ] } [/block] Turn on **UI tests on virtual devices**, then select the **variant** you would like to run UI tests against. [block:image] { "images": [ { "image": [ "https://files.readme.io/f79e44f-Tests_-_virtual_select_variant.jpg", "Tests - virtual select variant.jpg", 1500, 543, "#d3d6d8" ] } ] } [/block] Lastly, select the virtual devices you want to run UI tests on. [block:image] { "images": [ { "image": [ "https://files.readme.io/e621e1e-Tests_-_virtal_select_device.jpg", "Tests - virtal select device.jpg", 1500, 543, "#eef0f0" ] } ] } [/block] [block:api-header] { "title": "Run UI tests on virtual devices for a specific branch only" } [/block] 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. [block:image] { "images": [ { "image": [ "https://files.readme.io/999228a-Builds_-_Branch_override_-_1.png", "Builds - Branch override - 1.png", 1500, 555, "#d4dde2" ] } ] } [/block] Select **Run UI tests on virtual devices** from the dropdown, then click the **Configure** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/7ff9c3f-Tests_-_virtual_branch_override.jpg", "Tests - virtual branch override.jpg", 1500, 543, "#1395e1" ] } ] } [/block] You can now select the virtual devices you want to run UI tests on for your selected branch.