===================== 开始检查配置环境 =====================
→ 检查 ANDROID_HOME 环境变量通过 √
→ 检查 ADB 环境通过 √
→ 检查 Node 环境通过 √
→ 检查 npm 环境通过 √
→ 检查 JAVA_HOME 环境变量通过 √
→ 检查 Appium 环境通过 √
→ 检查 adbkit 环境通过 √
→ 检查 chromeDriver 环境通过 √
→ 校验 本地文件夹 通过 √
===================== 配置环境检查结果 =====================
· JAVA_HOME(系统PATH环境变量): E:\Chilam\Jdk\jdk17
· java version(运行当前jar的java版本): 17.0.2
· ANDROID_HOME(系统PATH环境变量): E:\Chilam\Android\android-sdk
· ADB path: E:\Chilam\Scrcpy\scrcpy-win64-v1.13\adb.exe
E:\Chilam\Android\android-sdk\platform-tools\adb.exe
· ADB version: Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as E:\Chilam\Scrcpy\scrcpy-win64-v1.13\adb.exe
· chromeDriver path: "C:\Program Files\Google\Chrome\Application\chromedriver.exe"
· chromeDriver version: ChromeDriver 99.0.4844.51 (d537ec02474b5afe23684e7963d538896c63ac77-refs/branch-heads/4844@{#875})
· Node path: E:\Chilam\Node\nodejs\node.exe
· Node version: v16.14.0
· npm path: E:\Chilam\Node\nodejs\npm
E:\Chilam\Node\nodejs\npm.cmd
· npm version: 8.3.1
· adbkit path: C:\Users\liujunjie\AppData\Roaming\npm\adbkit
C:\Users\liujunjie\AppData\Roaming\npm\adbkit.cmd
· adbkit version: 2.11.1
· Appium path: C:\Users\liujunjie\AppData\Roaming\npm\appium
C:\Users\liujunjie\AppData\Roaming\npm\appium.cmd
· Appium version: 1.22.2
· System: windows 10
===================== 配置环境检查结束 =====================
2022-03-25 14:03:58.521 - INFO 81584 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7777 (http) with context path ''
2022-03-25 14:03:58.528 - INFO 81584 --- [main] o.c.s.a.automation.RemoteDebugDriver : 开启webview相关功能
ChromeDriver was started successfully.
2022-03-25 14:03:59.271 - INFO 81584 --- [Forwarding newSession on session null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C
2022-03-25 14:03:59.284 - INFO 81584 --- [main] o.c.s.a.automation.RemoteDebugDriver : chromeDriver启动完毕!
2022-03-25 14:03:59.285 - INFO 81584 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : 开启安卓相关功能
2022-03-25 14:03:59.285 - INFO 81584 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : 开启iOS相关功能
2022-03-25 14:03:59.286 - INFO 81584 --- [main] o.c.s.agent.tests.handlers.StepHandlers : Registered 5 condition handler(s)
2022-03-25 14:03:59.289 - INFO 81584 --- [main] org.cloud.sonic.agent.AgentApplication : Started AgentApplication in 4.995 seconds (JVM running for 5.334)
2022-03-25 14:03:59.480 - INFO 81584 --- [AgentNettyClient-3-1] o.c.s.a.b.a.AndroidDeviceBridgeTool : 安卓设备监听已开启
2022-03-25 14:04:00.546 - INFO 81584 --- [AgentNettyClient-3-1] o.cloud.sonic.agent.bridge.ios.SibTool : iOS设备监听已开启
2022-03-25 14:04:00.547 - INFO 81584 --- [AgentNettyClient-3-1] o.c.sonic.agent.netty.SecurityHandler : Agent:/192.168.6.2:64986 请求连接到服务器 /192.168.1.50:8095 !
2022-03-25 14:04:00.663 - INFO 81584 --- [AgentNettyClient-3-1] o.c.sonic.agent.netty.SecurityHandler : Agent:/192.168.6.2:64986 收到服务器 /192.168.1.50:8095 返回验证消息: {"msg":"auth","result":"pass","id":4}
2022-03-25 14:04:00.664 - INFO 81584 --- [AgentNettyClient-3-1] o.c.sonic.agent.netty.SecurityHandler : 服务器认证通过!
2022-03-25 14:04:00.665 - INFO 81584 --- [AgentNettyClient-3-1] o.c.sonic.agent.netty.SecurityHandler : 当前sonic-agent版本为:1.3.2-release
2022-03-25 14:04:00.667 - INFO 81584 --- [AgentNettyClient-3-1] o.c.s.agent.netty.NettyClientHandler : Agent:/192.168.6.2:64986 连接到服务器 /192.168.1.50:8095 成功!
2022-03-25 14:04:00.671 - INFO 81584 --- [pool-4-thread-1] o.cloud.sonic.agent.bridge.ios.SibTool : iOS设备:e0202d0d9e711cdc924f32af0ec92dda67ee2a90 上线!
2022-03-25 14:04:00.672 - INFO 81584 --- [pool-4-thread-1] o.cloud.sonic.agent.bridge.ios.SibTool : {"deviceId":4,"connectionSpeed":0,"connectionType":"USB","locationId":0,"productId":4776,"serialNumber":"e0202d0d9e711cdc924f32af0ec92dda67ee2a90","status":"online","deviceDetail":{"generationName":"iPhone X","deviceName":"iPhone X","deviceColor":"1","deviceClass":"iPhone","productVersion":"14.4.2","productType":"iPhone10,3","productName":"iPhone OS","cpuArchitecture":"arm64","protocolVersion":"2","telephonyCapability":true,"uniqueDeviceID":"e0202d0d9e711cdc924f32af0ec92dda67ee2a90","wifiAddress":"54:33:cb:96:4c:12","buildVersion":"18D70"}}
2022-03-25 14:04:10.703 - INFO 81584 --- [http-nio-7777-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-03-25 14:04:10.703 - INFO 81584 --- [http-nio-7777-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2022-03-25 14:04:10.704 - INFO 81584 --- [http-nio-7777-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 0 ms
2022-03-25 14:04:10.740 - INFO 81584 --- [http-nio-7777-exec-1] o.c.sonic.agent.websockets.IOSWSServer : ios上锁udId:e0202d0d9e711cdc924f32af0ec92dda67ee2a90
2022-03-25 14:04:10.870 - INFO 81584 --- [http-nio-7777-exec-1] o.cloud.sonic.agent.bridge.ios.SibTool : WebDriverAgent server start failed... try to mount developer disk image...
2022-03-25 14:04:10.898 - INFO 81584 --- [http-nio-7777-exec-1] o.cloud.sonic.agent.bridge.ios.SibTool : mount develop disk image fail
[35m[XCUITest][39m {}
2022-03-25 14:04:26.062 - INFO 81584 --- [pool-4-thread-2] org.cloud.sonic.agent.tools.LogTool : {"msg":"step","des":"连接设备驱动失败!","log":"","time":"14:04:26","rid":0,"udId":"e0202d0d9e711cdc924f32af0ec92dda67ee2a90","status":4,"cid":0}
2022-03-25 14:04:26.064 -ERROR 81584 --- [pool-4-thread-2] o.c.sonic.agent.websockets.IOSWSServer : Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:65035 Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'JSB-LIUJUNJIE', ip: '192.168.6.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.2'
Driver info: driver.version: IOSDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:65035 Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
at getResponseForW3CError (C:\Users\liujunjie\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\liujunjie\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:380:37)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'JSB-LIUJUNJIE', ip: '192.168.6.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.2'
Driver info: driver.version: IOSDriver