Appium Andrid UiAutomator 实践
Android Studio
UiAutomator (Android Platform)Sample Code:
https://github.com/googlesamples/android-testing
ui/uiautomator/BasicSample
官方的uiautomator自动化工具文档:
https://developer.android.com/training/testing/ui-testing/uiautomator-testing
API文档:
https://developer.android.com/reference/android/support/test/uiautomator/package-summary
**appium里的uiselector(包含了UISelector和UiScrollable的写法): **
http://appium.io/docs/en/writing-running-appium/android/uiautomator-uiselector/
本次课使用工具:
- 演示app:Zaker.apk
- Sublime Text 3 (编辑工具)
- Android Studio
- UiAutomatorViewer
- Vysor (Android 投屏工具)
作业:
1、基于uiautomator sample code,增加你们公司App的业务并运行起来;
2、在Appium的脚本中,使用find_element_by_android_uiautomator进行元素定位;