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"
    }
    脚本执行通过,升级需谨慎啊!

  • 相关阅读:
    2017.5.8下午
    2017.5.8上午
    2017.5.5下午
    2017.5.5上午
    2017.5.4下午
    WPF DataGrid LoadingRow style 滚动失效
    centos nginx 环境变量
    Kettle-03-定时转换
    Kettle-02-转换
    Kettle-01-安装(CentOS 7 离线)
  • 原文地址:https://www.cnblogs.com/devtest/p/10069983.html
Copyright © 2011-2022 走看看