{"_id":"59121999c188f10f005013d7","__v":0,"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)"},"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"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-09T19:33:45.881Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"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 physical 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 physical devices?\",\n  \"body\": \"Running UI tests on physical devices could expose issues that may not manifest when running on virtual devices. In addition, based off the type of test, running on physical devices could lead to overall faster test run times.\\n\\n**Each physical device is charged per minute of use**. Depending on the type of device and contention, there may be a delay before your tests run.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Setting up default UI tests on physical devices\"\n}\n[/block]\nYou can set up default UI tests on physical devices that 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/32959b2-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/d96cee4-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 physical devices** and click **Configure**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/760608d-Tests_-_physical_configure.jpg\",\n        \"Tests - physical configure.jpg\",\n        1500,\n        606,\n        \"#d2d8dd\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Running UI tests on physical devices are charged per minute of use\",\n  \"body\": \"Annual plan subscribers will be invoiced once a month for running UI tests on physical devices.\"\n}\n[/block]\nTurn on **UI tests on physical 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/b99cf2a-Tests_-_physical_select_variant.jpg\",\n        \"Tests - physical select variant.jpg\",\n        1500,\n        543,\n        \"#d2d5d8\"\n      ]\n    }\n  ]\n}\n[/block]\nLastly, select the physical devices you want to run UI tests on.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/9fb980a-Tests_-_physical_select_device.jpg\",\n        \"Tests - physical select device.jpg\",\n        1500,\n        543,\n        \"#edf0f0\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Run UI tests on physical devices for a specific branch only\"\n}\n[/block]\nYou can also run UI tests on physical 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 physical devices for.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/e990919-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 physical devices** from the dropdown, then click the **Configure** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/441c558-Tests_-_physical_branch_override.jpg\",\n        \"Tests - physical branch override.jpg\",\n        1500,\n        543,\n        \"#1395e1\"\n      ]\n    }\n  ]\n}\n[/block]\nYou can now select the physical devices you want to run UI tests on for your selected branch.","excerpt":"","slug":"ui-tests-on-physical-devices","type":"basic","title":"UI Tests on Physical Devices"}

UI Tests on Physical 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 physical devices to run your UI tests against, and buddybuild will automate the rest! [block:callout] { "type": "info", "title": "Why run UI tests on physical devices?", "body": "Running UI tests on physical devices could expose issues that may not manifest when running on virtual devices. In addition, based off the type of test, running on physical devices could lead to overall faster test run times.\n\n**Each physical device is charged per minute of use**. Depending on the type of device and contention, there may be a delay before your tests run." } [/block] [block:api-header] { "title": "Setting up default UI tests on physical devices" } [/block] You can set up default UI tests on physical devices that will apply to all branches. Start by clicking on **App Settings**. [block:image] { "images": [ { "image": [ "https://files.readme.io/32959b2-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/d96cee4-Tests_-_menu.jpg", "Tests - menu.jpg", 1500, 606, "#e9f0f1" ] } ] } [/block] Next, locate **Run UI tests on physical devices** and click **Configure**. [block:image] { "images": [ { "image": [ "https://files.readme.io/760608d-Tests_-_physical_configure.jpg", "Tests - physical configure.jpg", 1500, 606, "#d2d8dd" ] } ] } [/block] [block:callout] { "type": "warning", "title": "Running UI tests on physical devices are charged per minute of use", "body": "Annual plan subscribers will be invoiced once a month for running UI tests on physical devices." } [/block] Turn on **UI tests on physical devices**, then select the **variant** you would like to run UI tests against. [block:image] { "images": [ { "image": [ "https://files.readme.io/b99cf2a-Tests_-_physical_select_variant.jpg", "Tests - physical select variant.jpg", 1500, 543, "#d2d5d8" ] } ] } [/block] Lastly, select the physical devices you want to run UI tests on. [block:image] { "images": [ { "image": [ "https://files.readme.io/9fb980a-Tests_-_physical_select_device.jpg", "Tests - physical select device.jpg", 1500, 543, "#edf0f0" ] } ] } [/block] [block:api-header] { "title": "Run UI tests on physical devices for a specific branch only" } [/block] You can also run UI tests on physical 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 physical devices for. [block:image] { "images": [ { "image": [ "https://files.readme.io/e990919-Builds_-_Branch_override_-_1.png", "Builds - Branch override - 1.png", 1500, 555, "#d4dde2" ] } ] } [/block] Select **Run UI tests on physical devices** from the dropdown, then click the **Configure** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/441c558-Tests_-_physical_branch_override.jpg", "Tests - physical branch override.jpg", 1500, 543, "#1395e1" ] } ] } [/block] You can now select the physical devices you want to run UI tests on for your selected branch.