官术网_书友最值得收藏!

UiAutomator 2

UIAutomator 2 is an automation framework based on Android instrumentation and allows one to build and run UI tests.

Appium uses Google’s UIAutomator to execute commands on real devices and emulators. UIAutomator is Google’s test framework for native app automation at the UI level. Typical usage would be to pass the following in desired capabilities:

automationName: uiautomator2

With version 1.6, Appium has provided support to UiAutomator 2. Appium uses the appium-android-bootstrap module to interact with UI Automator. It allows commands to be sent to the device, which are then executed on real devices using Android's UIAutomator testing framework.

When Appium client requests to create a new AndroidDriver session, the client passes the desired capability to the Appium node server. The UIAutomator2 driver module creates the session. It then installs the UIAutomator2 server APK on the connected Android device, starts the Netty server, and initiates a session. Once the Netty server session is started, the UIAutomator2 server continues to listen on the device for requests and responds:

 
Picture courtesy--GitHub Appium page
主站蜘蛛池模板: 安福县| 斗六市| 民丰县| 麻城市| 济阳县| 收藏| 凉城县| 巨野县| 泰和县| 平度市| 汾阳市| 澄迈县| 璧山县| 渑池县| 平邑县| 土默特左旗| 汉阴县| 苏尼特右旗| 小金县| 仙居县| 阳江市| 南充市| 双流县| 无为县| 若尔盖县| 和政县| 中牟县| 台湾省| 靖西县| 新安县| 泉州市| 黄平县| 茶陵县| 建平县| 随州市| 阜新市| 巴东县| 海晏县| 平舆县| 北碚区| 宜兰县|