• Appium遇到异常处理


    问题一:

    命令行启动Appium后,执行测试用例,报错

      File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
    emotewebdriver.py", line 154, in __init__
    self.start_session(desired_capabilities, browser_profile)
    File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emotewebdriver.py", line 243, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
    File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emotewebdriver.py", line 312, in execute
    self.error_handler.check_response(response)
    File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emoteerrorhandler.py", line 130, in check_response
    status = value["status"]
    KeyError: 'status'


    具体原因还未查明,当前处理方式:
    重新安装appium版本 cnpm install -g appium


    问题二:appium-doctor执行报错
    $appium-doctor
    info AppiumDoctor Appium Doctor v.1.4.3
    info AppiumDoctor ### Diagnostic starting ###
    info AppiumDoctor  ✔ The Node.js binary was found at: /Users/yanglongfeng/.nvm/versions/node/v8.11.0/bin/node
    info AppiumDoctor  ✔ Node version is 8.11.0
    info AppiumDoctor  ✔ Xcode is installed at: /Applications/Xcode.app/Contents/Developer
    Error: Could not detect Mac OS X Version from sw_vers output: '10.14.5'
        at Object.macOsxVersion$ (/usr/local/lib/node_modules/appium-doctor/node_modules/appium-support/lib/system.js:43:11)
        at tryCatch (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:67:40)
        at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:315:22)
        at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:100:21)
        at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:136:37)
        at <anonymous>
    具体原因未查明,当前处理方式:
    重新安装appium cnpm install -g appium-doctor



  • 相关阅读:
    高精度运算专题1-加法运算(The addition operation)
    大数据除法(Large data division)
    大数据阶乘(The factorial of large data)
    大数据加减(Big data addition and subtraction)
    我凭什么能上北大——贺舒婷
    说说我自己(安徽一考生)-2
    说说我自己(安徽一考生)-1
    一个夏日的早晨(山东济南一考生)
    洛谷-回文质数-过程函数与递归
    洛谷-数字反转(升级版)-简单字符串
  • 原文地址:https://www.cnblogs.com/wx2017/p/11008138.html
Copyright © 2020-2023  润新知