appium从1.9升级到1.10踩的坑

在使用appium的时候,突然弹出窗口询问是否升级到1.10,一时手贱就点击了。升级完成后,用appium打开模拟器以及app是没问题的,但用python测试脚本调用,appium日志提示:
[XCUITest] Simulator udid not provided, using desired caps to create a new simulator
[simctl] Creating simulator with name 'appiumTest-iPhone 6s Plus', device type id 'iPhone 6s Plus' and runtime id 'undefined'
[simctl] Error: simctl error running 'create': Invalid runtime: undefined
原来的配置文件为:
{
"platformName": "ios",
"platformVersion": "12.1",
"deviceName": "iPhone 6 plus Simulator",
"app": "/Users/wangchangpeng/exshell/exbell_ios_1.ipa",
"automationName": "XCUITest",
"noReset": "true"
}
 
看日志的错误提示有两点,一个是没定义模拟器,二是没有udid.对配置文件做了相应修改
 
{
"platformName": "ios",
"platformVersion": "12.1",
"deviceName": "iPhone 6s Plus",
"app": "/Users/wangchangpeng/exshell/exbell_ios_1.ipa",
"automationName": "XCUITest",
"noReset": "true",
"udid": "1B1CC2F6-3A09-4C10-B824-754D9CE964D1"
}
脚本执行通过,升级需谨慎啊!

posted on 2018-12-05 11:36  测试老王  阅读(1577)  评论(0编辑  收藏  举报

导航