Appium uses

The premise is that the mobile phone Yi Jing is connected to the computer through adb

1. Open Appium
Insert image description here
and click startServer
Insert image description here
Insert image description here
2. Open Appium Inspector
Insert image description here
and fill in the following data
Insert image description here

    desired_caps常用参数:
    platformName         平台的名称:iOS, Android, or FirefoxOS
    platformVersion      设备系统版本号
    deviceName           设备号 IOS:instruments -s devices,Android: adb devices
    app                  安装文件路径:/abs/path/to/my.apk or http://myapp.com/app
    appActivity          启动的Activity
    appPackage           启动的包
    unicodeKeyboard      unicode设置(允许中文输入)
    resetKeyboard        键盘设置(允许中文输入)

Query the package name and startup items of the current application

adb shell dumpsys window w |findstr \/ |findstr name=
adb shell dumpsys window | findstr mCurrentFocus

Get system version:

adb shell getprop ro.build.version.release

Check the link system model:

adb devices -l

Insert image description here

Insert image description here
Insert image description here
Click to start the session.
Insert image description here
After loading for a while, click to install the two required apps on your phone. That’s it.

Guess you like

Origin blog.csdn.net/s_daqing/article/details/127990768