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

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
主站蜘蛛池模板: 密山市| 曲沃县| 芦山县| 南充市| 淄博市| 北辰区| 安阳市| 高淳县| 那曲县| 伽师县| 兴化市| 灵川县| 仙桃市| 新邵县| 富顺县| 凤冈县| 武隆县| 宝鸡市| 米易县| 遂昌县| 香河县| 铜川市| 永德县| 雅安市| 加查县| 随州市| 临江市| 安阳市| 伊宁市| 邵阳市| 阳曲县| 扶沟县| 墨玉县| 鹿邑县| 盐亭县| 东丽区| 常德市| 万全县| 班戈县| 武清区| 上蔡县|