zoukankan      html  css  js  c++  java
  • 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"
    }
    脚本执行通过,升级需谨慎啊!

  • 相关阅读:
    2014-04-23 总结
    14-5-13
    PHP
    14-5-8
    ajax
    14-5-6
    14-5-5
    PHP初解
    14-4-30
    14-4-29
  • 原文地址:https://www.cnblogs.com/devtest/p/10069983.html
Copyright © 2011-2022 走看看