About Appium implementation of the use case approach to the process of problem
- 1. Operating Environment
1.1 windows10 64-bit system
1.2 Huawei glory V10 Android 9
1.3 appium-desktop 1.15.1
- 2. The execution was repeated installation (io.appium.uiautomator.server and io.appium.uiautomator.server.test) Solutions
2.1 handset developers USB debugging mode, install closed ADB
2.2 modify the file 1
路径:C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\build\lib\driver.js
Notes picture this line
2.3 modify the file 2
路径: 100: \ Program Files \ epochs \ resources \ app \ node_modules \ appium \ node_modules \ appium-uiautomator2-driver \ lib \ driver.js
Notes picture the line
3. Check app program apppackage and appactivity
3.1 calls aapt.exe
Program path: D: \ androidsdk \ build-tools \ 28.0.2 \ aapt.exe
查看方法:D:\androidsdk\build-tools\28.0.2\aapt.exe dump badging E:\apk\toutiao.apk >E:\xinxi\toutiaoinf.txt && E:\xinxi\toutiaoinf.txt
查看信息直接保存在E:\xinxi\toutiaoinf.txt文件中,并直接打开该文件
3.2第二种查看app package/activity的方式:
1. 打开对应的app
2. cmd 命令行下:adb shell dumpsys activity recents | find “intent={”> D:\info.txt && D:\info.txt
3.
4. 4.1下载Android SDK压缩包
4.2解压该压缩包到D盘根目录下:
4.3新解压文件只有tools文件夹,需要执行cmd --> sdkmanager命令
回车后生成文件如下:
4.4关于sdkmanager的介绍
链接:https://developer.android.google.cn/studio/command-line/sdkmanager
4.5 Android API Level对应Android版本
4.6 adb命令查看设备信息