- Mobile Test Automation with Appium
- Nishant Verma
- 186字
- 2021-07-02 20:34:36
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:

- Unreal Engine Physics Essentials
- 案例式C語言程序設計
- INSTANT OpenCV Starter
- C語言程序設計教程
- ServiceNow:Building Powerful Workflows
- Scala編程(第5版)
- WordPress Search Engine Optimization(Second Edition)
- MongoDB Cookbook
- WCF全面解析
- Eclipse開發(學習筆記)
- Visual Basic 開發從入門到精通
- Spring Cloud微服務架構開發實戰
- Introduction to Programming
- 編程改變生活:用Python提升你的能力(基礎篇·微課視頻版)
- 自動化測試實戰寶典:Robot Framework+Python從小工到專家