1. 配置启动app的代码
from appium.webdriver import Remote
driver = Remote(command_executor='http://127.0.0.1:4723',desired_capabilities={
"appium:platformName": "ios",
"appium:platformVersion": "16.1.1",
"appium:bundleId": "com.xxx.xxx",
"appium:deviceName": "iPhone 11",
"appium:udid": "xxx-xxxxxxxxxx",
"appium:automationName": "XCUITest",
"appium:usePrebuiltWDA": True,
"appium:showXcodeLog": True,
"appium:startlWDP": True,
"appium:useXctestrunFile": False
})
bundleId 需要替换为带测app的
udid需要替换为测试设备的id
2. 在命令行启动appium服务
3. 执行启动代码,测试app开始启动