Running a test on actual Android devices

Running a test on a physical device is very similar to running the test on emulators once the preceding setup is done. As long as we are providing the platform version correctly and providing there is only a single device connected, the test will pick up that device for execution. However, when we have multiple devices connected with the same android platform version, we need to specify the unique udid of the device to run the test.
So, if we have the emulator and device of the same platform version, we can use the following line and update the respective device ID to run the test on the connected physical device:

capabilities.setCapability("udid", "2a2d916");
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.204.201