Appium Appium log日志报告说是我的应用 crash,但实际上这种退出并不是测试应用的退出,大家帮忙解解惑

sini · 2018年02月02日 · 最后由 笑哼 回复于 2018年10月31日 · 1567 次阅读
  1. 环境:

    Appium version: 1.7.2
    ipad: iPad Air 2 10.3.2
    Xcode: 8.3.2
    Mac 版本: 10.12.6 
    
  2. 八九个用例实际测试的就是一个功能,前面几个用例完全能够通过,但是运行到后面就报错啦,下面是报错日志


[debug] [JSONWP Proxy] Got response with status 200: {"value":"The application under test with bundle id 'com.appiumTest.rlterm3push.v6' is not running, possibly crashed","sessionId":"BE165778-ACD7-44F3-8FF1-AFFEE922B201","status":889}
[MJSONWP] Encountered internal error running command: Error: An error occurred
    at JWProxy.command$ (../../../lib/jsonwp-proxy/proxy.js:176:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session/71e55a19-054d-4822-bf68-4da006788cb7/touch/perform 500 232 ms - 188 

  1. 下面是 try-catch 异常的日志

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: An error occurred (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 237 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'binlis-Mac-mini.local', ip: '192.168.1.153', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_77'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{app=/Applications/rlasp2_autotest/6.4/autoTest/apps/rlterm3.app, networkConnectionEnabled=false, noReset=true, databaseEnabled=false, deviceName=autotest, launchTimeout=500000, platform=MAC, wdaLocalPort=8002, platformVersion=10.3.0, webStorageEnabled=false, locationContextEnabled=false, automationName=XCuiTest, useNewWDA=true, browserName=, takesScreenshot=true, javascriptEnabled=true, udid=9da82887884423f91840e4a4601862d2821de94a, platformName=iOS}]
Session ID: 71e55a19-054d-4822-bf68-4da006788cb7
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
  at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
  at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
  at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
  at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
  at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
  at io.appium.java_client.AppiumDriver.performTouchAction(AppiumDriver.java:336)
  at io.appium.java_client.TouchAction.perform(TouchAction.java:323)

设备日志也没有报告设备这边的 crash

共收到 1 条回复 时间 点赞

同问,我也遇到这种情形,请问你解决没

需要 登录 後方可回應,如果你還沒有帳號按這裡 注册