appium,java,Mac运行脚本出错,之前可以运行,升级到iOS10.13.2后就不行了

某位周某某 2017-12-13 04:20:48
eclipse日志:
/Users/rhx/eclipse-workspace/TestAPP/app/app-release.apk
PASSED: startRecord
FAILED: start
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/Users/rhx/Library/Android/sdk/platform-tools/adb -P 5037 -s 2df490c99904 install /usr/local/lib/node_modules/appium/node_modules/_appium-android-ime\@2.0.0\@appium-android-ime/bin/UnicodeIME-debug.apk' exited with code 1'; Stderr: 'Failed to install /usr/local/lib/node_modules/appium/node_modules/_appium-android-ime@2.0.0@appium-android-ime/bin/UnicodeIME-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package io.appium.android.ime signatures do not match the previously installed version; ignoring!]'; Code: '1' (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.82 seconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'JackdeiMac.local', ip: '192.168.2.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.2', java.version: '1.8.0_111'
Driver info: io.appium.java_client.android.AndroidDriver
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:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:37)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:160)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:168)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:69)
at nfyg.testapp.App.start(App.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


appium 客户端日志:
Welcome to Appium v1.6.5
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/rhx/eclipse-workspace/TestAPP/app/app-release.apk","appPackage":"com.nfyg.hsbb","noSign":"True","deviceName":"2df490c99904","appActivity":".views.main.CoverActivity","platformVersion":"7.0","automationName":"Appium","browserName":"","sessionOverride":true,"unicodeKeyboard":true,"platformName":"Android","resetKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/rhx/eclipse-workspace/TestAPP/app/app-release.apk","appPackage":"com.nfyg.hsbb","noSign":"True","deviceName":"2df490c99904","appActivity":".views.main.CoverActivity","platformVersion":"7.0","automationName":"Appium","browserName":"","sessionOverride":true,"unicodeKeyboard":true,"platformName":"Android","resetKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1513152917881 (16:15:17 GMT+0800 (CST))
[Appium] Creating new AndroidDriver (v1.35.0) session
[Appium] Capabilities:
[Appium] app: '/Users/rhx/eclipse-workspace/TestAPP/app/app-release.apk'
[Appium] appPackage: 'com.nfyg.hsbb'
[Appium] noSign: 'True'
[Appium] deviceName: '2df490c99904'
[Appium] appActivity: '.views.main.CoverActivity'
[Appium] platformVersion: '7.0'
[Appium] automationName: 'Appium'
[Appium] browserName: ''
[Appium] sessionOverride: true
[Appium] unicodeKeyboard: true
[Appium] platformName: 'Android'
[Appium] resetKeyboard: true
[BaseDriver] Capability 'noSign' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: sessionOverride.
[BaseDriver] Session created with session id: 1371b9ca-735e-4d1f-9665-77adbc367c10
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/rhx/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '7.0'
[debug] [ADB] Setting device id to 2df490c99904
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/rhx/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","2df490c99904","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 7.0
[AndroidDriver] Using device: 2df490c99904
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/rhx/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to 2df490c99904
[BaseDriver] Using local app '/Users/rhx/eclipse-workspace/TestAPP/app/app-release.apk'
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running '/Users/rhx/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","2df490c99904","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/rhx/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","2df490c99904","shell","echo","ping"]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Enabling Unicode keyboard support
[debug] [AndroidDriver] Pushing unicode ime to device...
[debug] [ADB] Running '/Users/rhx/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","2df490c99904","install","/usr/local/lib/node_modules/appium/node_modules/_appium-android-ime@2.0.0@appium-android-ime/bin/UnicodeIME-debug.apk"]
[debug] [ADB] Running '/Users/rhx/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","2df490c99904","install","/usr/local/lib/node_modules/appium/node_modules/_appium-android-ime@2.0.0@appium-android-ime/bin/UnicodeIME-debug.apk"]
[debug] [AndroidDriver] Shutting down Android driver
[debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/rhx/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","2df490c99904","shell","am","force-stop","io.appium.unlock"]
[debug] [AndroidDriver] Not cleaning generated files. Add `clearSystemFiles` capability if wanted.
[MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command '/Users/rhx/Library/Android/sdk/platform-tools/adb -P 5037 -s 2df490c99904 install /usr/local/lib/node_modules/appium/node_modules/_appium-android-ime\@2.0.0\@appium-android-ime/bin/UnicodeIME-debug.apk' exited with code 1'; Stderr: 'Failed to install /usr/local/lib/node_modules/appium/node_modules/_appium-android-ime@2.0.0@appium-android-ime/bin/UnicodeIME-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package io.appium.android.ime signatures do not match the previously installed version; ignoring!]'; Code: '1'
at ADB.execFunc$ (../../../lib/tools/system-calls.js:317:13)
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 throw] (/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 500 20831 ms - 715




...全文
233 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧