Multiple devices connected error in Robotframework

我的未来我决定 提交于 2019-12-04 19:48:33

The answer is on the documentation for the Set Serial keyword, on uiautomatorlibrary.html, below:

Set Serial android_serial

Specify given android_serial device to perform test.

You do not have to specify the device when there is only one device connects to the computer.

When you need to use multiple devices, do not use this keyword to switch between devices in test execution.

Using different library name when importing this library according to http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.5.

| Setting |..Value.| ..... Value ..... | . Value . |
| Library | Mobile | WITH NAME | Mobile1 |
| Library | Mobile | WITH NAME | Mobile1 |

And set the serial to each library.
| .... Test Case .... | ........ Action ........ | ..... Argument ..... |
| Multiple Devices | Mobile1.Set Serial | device_1's serial |
| .......................... | Mobile2.Set Serial | device_2's serial |

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!