Appium启动iOS-&&-Android自动化
需要配置Appium的启动相关参数:
官网超详细参数配置及其含义
iOS配置:
{ "platformVersion": "11.2.6", "deviceName": "iPhone", "platformName": "iOS", "udid": "手机udid", "bundleId": "APP bundleid", "automationName": "XCUITest", "xcodeSigningId": "iPhone Developer", "xcodeOrgId": "10位校验码", "showIOSLog": "true", "preventWDAAttachments": "false" }
启动成功界面:
Android配置:
{ "platformName": "Android", "deviceName": "MI_5s_Plus", "newCommandTimeout": 180, "udid": "设备号", "appActivity": "要启动的 Android acticity", "appPackage": "包名", "autoGrantPermissions": true }
appActivity和appPackage可通过adb shell dumpsys activity activities
命令行获取
例如结果中含有:cmp=com.Qunar/com.mqunar.hy.browser.HyMainActivity
则:
appPackage:com.Qunar appActivity:com.mqunar.hy.browser.HyMainActivity
启动成功界面:
相关推荐
lucialee 2020-06-13
huha 2020-10-16
xfcyhades 2020-11-20
sgafdsg 2020-11-04
Michael 2020-11-03
fengyeezju 2020-10-14
ziyexiaoxiao 2020-10-14
业余架构师 2020-10-09
OuNuo0 2020-09-29
moses 2020-09-22
Angelia 2020-09-11
qinxu 2020-09-10
刘炳昭 2020-09-10
Nostalgiachild 2020-09-07
Nostalgiachild 2020-08-17
leavesC 2020-08-14
一青年 2020-08-13
AndroidAiStudy 2020-08-07
ydc0 2020-07-30