adb devices
查到手机的udid
8GP4C18428011285
appium -a 127.0.0.1 -p 4723 –U 8GP4C18428011285 --no-reset
运行这句总报错。后面发现运行下面的可以。
appium -a 127.0.0.1 -p4723 -U 8GP4C18428011285
运行appium程序即可。
相关的参数填写如下:
desired_caps['platformName'] = 'Android'
desired_caps['deviceName'] = 'HWANE'
desired_caps['platformVersion'] = '8.0.0'
desired_caps['app'] = r'/Users/yaling/Downloads/Rise_Teacher_2.1.0.apk'
desired_caps['appPackage'] = 'com.xxxx.teacher'
desired_caps['appActivity'] = 'com.xxxxx.teacher.ui.SplashActivity'
desired_caps['noReset'] = 'False'
网友评论