info:[debug]将设备ID设置为ZY223DDMM8 info:[debug]等待设备准备就绪并响应shell命令(timeout = 5) info:[debug]执行cmd:E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8等待设备 info:[debug]执行cmd:E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8 shell“echo'ready'” info:[debug]启动logcat捕获 info:[debug]将解锁帮助应用程序推送到设备... info:[debug]执行cmd:E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8安装“C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk” info:[debug]清理appium会话 错误:无法启动Appium会话,错误是:错误:命令失败:C:\ Windows \ system32 \ cmd.exe / s / c“E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8安装“C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk”“ 无法安装C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk:失败[INSTALL_FAILED_ALREADY_EXISTS:尝试在没先卸载的情况下重新安装io.appium.unlock。]
info:[debug]错误:命令失败:C:\ Windows \ system32 \ cmd.exe / s / c“E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8 install “C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk”“ 无法安装C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk:失败[INSTALL_FAILED_ALREADY_EXISTS:尝试在没先卸载的情况下重新安装io.appium.unlock。]
at ChildProcess.exithandler (child_process.js:751:12) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1016:16) at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
info:[debug]以错误响应客户端:{“status”:33,“value”:{“message”:“无法创建新会话。(原始错误:命令失败:C:\ Windows \ system32 \ cmd.exe / s / c \“E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8 install \”C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk \“\”\ n无法安装C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk:失败[INSTALL_FAILED_ALREADY_EXISTS:尝试重新安装-install io.appium.unlock而不先卸载。] \ r \ n)“,”killed“:false,”code“:1,”signal“:null,”cmd“:”C:\ Windows \ system32 \ cmd .exe / s / c \“E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8 install \”C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk \“\”“,”origValue“:”命令失败:C:\ Windows \ system32 \ cmd.exe / s / c \“E:\ MobileAutomation \ Android \ android-sdk \ platform-tools \ adb.exe -s ZY223DDMM8安装\“C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk \”\“\ n无法安装C:\ Program Files(x86)\ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk:失败[INSTALL_FAILED_ALREADY_EXISTS:尝试在不先卸载的情况下重新安装io.appium.unlock。] \ r \ n“},”sessionId“:null} info:< - POST / wd / hub / session 500 3251.479 ms - 1342
答案 0 :(得分:0)
添加--no-reset标志,以便appium在您运行测试脚本之前不会尝试再次安装apk或卸载apk