davinci 请问这个问题搞定没,我和您碰到一样的问题,从套件执行,机器无响应,提示Case通过
`2023-05-25 20:56:21.080 - INFO 64805 --- [WebSocketConnectReadThread-49] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"suite","cases":[{"gp":{"heyuan_event":"18600578546","D_ipa":"Z:\apk_test\door_7.36.0-beta.ipa","N_iphone":"zf6235612","ios_N_iphone":"zf6235638","ios_apk_name":"com.yangcong345.match","D_apk":"Z:\apk_test\ycmath-7.36.0-7360-guanghetv.apk","apk_name":"com.yangcong345.android.phone"},"rid":13823,"perf":{"isOpen":0,"perfInterval":1000},"steps":[{"step":{"stepType":"runScript","sort":25397,"error":3,"parentId":0,"platform":2,"content":"import org.cloud.sonic.agent.tests.LogUtil;\nimport org.cloud.sonic.agent.common.interfaces.StepType;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport org.cloud.sonic.agent.bridge.ios.SibTool;\nimport java.io.File;\nimport org.cloud.sonic.agent.tools.ProcessCommandTool;\n\ndef test(){\n iosStepHandler.closeIOSDriver()\n String udId = iosStepHandler.udId\n LogUtil log = iosStepHandler.log\n Process ps = null;\n String system = System.getProperty(\"os.name\").toLowerCase();\n File sib = new File(\"plugins\" + File.separator + \"sonic-ios-bridge\");\n if (system.contains(\"win\")) {\n ps = Runtime.getRuntime().exec(\"cmd /c \"+sib.getAbsolutePath()+\" run xctest -u \"+udId+\" -b bytedance.FastbotRunner.xctrunner -e BUNDLEID=com.yangcong345.match -e duration=5 -e throttle=300\");\n } else {\n ps = Runtime.getRuntime().exec(\"sh -c \"+sib.getAbsolutePath()+\" run xctest -u \"+udId+\" -b bytedance.FastbotRunner.xctrunner -e BUNDLEID=com.yangcong345.match -e duration=5 -e throttle=300\");\n }\n InputStreamReader inputStreamReader = new InputStreamReader(ps.getInputStream());\n BufferedReader stdInput = new BufferedReader(inputStreamReader);\n String s;\n while (ps.isAlive()) {\n try{\n if ((s = stdInput.readLine()) != null) {\n log.sendStepLog(StepType.INFO,\"ps msg\",s)\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n stdInput.close();\n inputStreamReader.close();\n iosStepHandler.startIOSDriver(udId, SibTool.startWda(udId)[0]);\n}\n\n//懒人版\n def test2() {\n String udId = iosStepHandler.udId\n LogUtil log = iosStepHandler.log\n File sib = new File(\"plugins\" + File.separator + \"sonic-ios-bridge\");\n String res = ProcessCommandTool.getProcessLocalCommandStr(sib.getAbsolutePath()+\" run xctest -u \"+udId+\" -b bytedance.FastbotRunner.xctrunner -e BUNDLEID:com.yangcong345.match -e duration=5 -e throttle=300\");\n log.sendStepLog(StepType.INFO,\"ps msg\",res)\n }\n\ntest()\n//test2()","caseId":409,"elements":[],"conditionType":0,"disabled":0,"id":7542,"text":"Groovy","projectId":2}}],"device":[{"agentId":1,"chiName":"","level":80,"nickName":"","cpu":"arm64","version":"15.6.1","platform":2,"manufacturer":"APPLE","voltage":4082,"imgUrl":"http://10.8.8.202:3000/server/api/folder/keepFiles/20230414/8f260bda-aa13-4b7c-a463-4e7a3961e8fb.png","password":"","size":"1080x1920","name":"iPhone8plus","temperature":362,"model":"iPhone 8 Plus","id":113,"position":0,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","user":"zhangfan","isHm":0,"status":"ONLINE"}],"cid":409}],"pf":2}
2023-05-25 20:56:21.083 - INFO 64805 --- [pool-2-thread-76] org.testng.internal.Utils : [TestNG] Running:
Command line suite
2023-05-25 20:56:23.787 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:23.827069+0800 WebDriverAgentRunner-Runner[5970:218202] Running tests...
2023-05-25 20:56:24.905 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : Test Suite 'All tests' started at 2023-05-25 20:56:24.946
2023-05-25 20:56:24.906 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrierTest Suite 'WebDriverAgentRunner.xctest' started at 2023-05-25 20:56:24.947
2023-05-25 20:56:24.906 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrierTest Suite 'UITestingUITests' started at 2023-05-25 20:56:24.947
2023-05-25 20:56:24.906 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrier t = nans Suite Set Up
2023-05-25 20:56:24.923 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.963501+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.923 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardAutocorrection
2023-05-25 20:56:24.923 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.963981+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_changedAt"
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.964444+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_buildAtChange"
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.964830+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_previousValue"
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.965209+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_analyzedAt"
2023-05-25 20:56:24.924 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.935 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.975679+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.935 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardPrediction
2023-05-25 20:56:24.935 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.935 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.976197+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.935 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardShowPredictionBar
2023-05-25 20:56:24.935 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.937 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.976805+0800 WebDriverAgentRunner-Runner[5970:218202] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:24.937 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : DidShowGestureKeyboardIntroduction
2023-05-25 20:56:24.937 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x280911780> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:24.941 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : Test Case '-[UITestingUITests testRunner]' started.
2023-05-25 20:56:24.942 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrier t = 0.00s Start Test at 2023-05-25 20:56:24.982
2023-05-25 20:56:24.942 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : t = 0.00s Set Up
2023-05-25 20:56:24.943 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.983962+0800 WebDriverAgentRunner-Runner[5970:218202] Built at Apr 24 2023 16:30:51
2023-05-25 20:56:24.958 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.999290+0800 WebDriverAgentRunner-Runner[5970:218202] ServerURLHere->http://169.254.97.23:8100<-ServerURLHere
2023-05-25 20:56:24.958 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : WebDriverAgent server start successful
2023-05-25 20:56:25.959 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:24.999544+0800 WebDriverAgentRunner-Runner[5970:218213] Using singleton test manager
2023-05-25 20:56:26.139 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : accept 127.0.0.1:55680
2023-05-25 20:56:26.160 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:26.200014+0800 WebDriverAgentRunner-Runner[5970:218202] Getting the most recent active application (out of 1 total items)
2023-05-25 20:56:26.178 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : t = 1.24s Find the Application 'com.apple.springboard'
2023-05-25 20:56:26.186 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : t = 1.25s Requesting snapshot of accessibility hierarchy for app with pid 62
[sonic-driver-core] 2023-05-25 20:56:26 [INFO] start session successful!
[sonic-driver-core] 2023-05-25 20:56:26 [INFO] session : D9BD1F4A-EB23-471D-A2C8-7C5A61C2BD26
[sonic-driver-core] 2023-05-25 20:56:26 [INFO] session capabilities : Capabilities(device=iphone, browserName= , sdkVersion=15.6.1, CFBundleIdentifier=com.apple.springboard)
2023-05-25 20:56:26.316 - INFO 64805 --- [ios-test-task-boot-13823-409-d2d6e3b629ce0d7f4ad45675c62df140996ccf7a] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"连接 WebDriverAgent 成功","log":"","time":"2023-05-25 20:56:26.316","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":2,"cid":409}
[sonic-driver-core] 2023-05-25 20:56:26 [INFO] set appium settings {"snapshotMaxDepth":30}.
[sonic-driver-core] 2023-05-25 20:56:26 [INFO] close session successful!
2023-05-25 20:56:26.513 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"退出连接设备","log":"","time":"2023-05-25 20:56:26.513","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":2,"cid":409}
2023-05-25 20:56:26.513 - INFO 64805 --- [Thread-741] o.cloud.sonic.agent.bridge.ios.SibTool : WebDriverAgent print thread shutdown.
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":"","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" ▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" ▄█▀▀▀▀█ ██▀▀██ ███ ██ ▀▀██▀▀ ██▀▀▀▀█","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" ██▄ ██ ██ ██▀█ ██ ██ ██▀","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" ▀████▄ ██ ██ ██ ██ ██ ██ ██","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" ▀██ ██ ██ ██ █▄██ ██ ██▄","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.539 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" █▄▄▄▄▄█▀ ██▄▄██ ██ ███ ▄▄██▄▄ ██▄▄▄▄█","time":"2023-05-25 20:56:26.539","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:26.540 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"ps msg","log":" ▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀","time":"2023-05-25 20:56:26.54","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:29.193 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:29.177753+0800 WebDriverAgentRunner-Runner[5974:218356] Running tests...
2023-05-25 20:56:30.565 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : Test Suite 'All tests' started at 2023-05-25 20:56:30.606
2023-05-25 20:56:30.566 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrierTest Suite 'WebDriverAgentRunner.xctest' started at 2023-05-25 20:56:30.607
2023-05-25 20:56:30.566 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrierTest Suite 'UITestingUITests' started at 2023-05-25 20:56:30.607
2023-05-25 20:56:30.567 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrier t = nans Suite Set Up
2023-05-25 20:56:30.589 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.629299+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.589 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardAutocorrection
2023-05-25 20:56:30.589 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.629829+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_changedAt"
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.630286+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_buildAtChange"
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.630713+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_previousValue"
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.590 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.631155+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.591 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_analyzedAt"
2023-05-25 20:56:30.591 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.602 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.642454+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.602 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardPrediction
2023-05-25 20:56:30.602 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.603 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.643016+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.603 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardShowPredictionBar
2023-05-25 20:56:30.603 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.604 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.643714+0800 WebDriverAgentRunner-Runner[5974:218356] [User Defaults] Couldn't write values for keys (
2023-05-25 20:56:30.604 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : DidShowGestureKeyboardIntroduction
2023-05-25 20:56:30.604 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x28066d300> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-05-25 20:56:30.606 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : Test Case '-[UITestingUITests testRunner]' started.
2023-05-25 20:56:30.607 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrier t = 0.00s Start Test at 2023-05-25 20:56:30.648
2023-05-25 20:56:30.608 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : t = 0.00s Set Up
2023-05-25 20:56:30.609 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.650326+0800 WebDriverAgentRunner-Runner[5974:218356] Built at Apr 24 2023 16:30:51
2023-05-25 20:56:30.624 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.664700+0800 WebDriverAgentRunner-Runner[5974:218356] ServerURLHere->http://169.254.97.23:8100<-ServerURLHere
2023-05-25 20:56:30.624 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : WebDriverAgent server start successful
2023-05-25 20:56:31.629 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:30.665037+0800 WebDriverAgentRunner-Runner[5974:218360] Using singleton test manager
2023-05-25 20:56:32.064 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : accept 127.0.0.1:55685
2023-05-25 20:56:32.083 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : 2023-05-25 20:56:32.123091+0800 WebDriverAgentRunner-Runner[5974:218356] Getting the most recent active application (out of 1 total items)
2023-05-25 20:56:32.099 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : t = 1.49s Find the Application 'com.apple.springboard'
2023-05-25 20:56:32.108 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : t = 1.50s Requesting snapshot of accessibility hierarchy for app with pid 62
[sonic-driver-core] 2023-05-25 20:56:32 [INFO] start session successful!
[sonic-driver-core] 2023-05-25 20:56:32 [INFO] session : 49915C75-6033-40D1-B0F6-88D73451F7F3
[sonic-driver-core] 2023-05-25 20:56:32 [INFO] session capabilities : Capabilities(device=iphone, browserName= , sdkVersion=15.6.1, CFBundleIdentifier=com.apple.springboard)
2023-05-25 20:56:32.235 - INFO 64805 --- [Thread-745] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"连接 WebDriverAgent 成功","log":"","time":"2023-05-25 20:56:32.235","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":2,"cid":409}
[sonic-driver-core] 2023-05-25 20:56:32 [INFO] set appium settings {"snapshotMaxDepth":30}.
2023-05-25 20:56:32.238 - INFO 64805 --- [ios-run-step-task-13823-409-d2d6e3b629ce0d7f4ad45675c62df140996ccf7a] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"Script result","log":"null","time":"2023-05-25 20:56:32.238","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:32.238 - INFO 64805 --- [ios-run-step-task-13823-409-d2d6e3b629ce0d7f4ad45675c62df140996ccf7a] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"Run Custom Scripts","log":"Script: <br>import org.cloud.sonic.agent.tests.LogUtil;\nimport org.cloud.sonic.agent.common.interfaces.StepType;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport org.cloud.sonic.agent.bridge.ios.SibTool;\nimport java.io.File;\nimport org.cloud.sonic.agent.tools.ProcessCommandTool;\n\ndef test(){\n iosStepHandler.closeIOSDriver()\n String udId = iosStepHandler.udId\n LogUtil log = iosStepHandler.log\n Process ps = null;\n String system = System.getProperty(\"os.name\").toLowerCase();\n File sib = new File(\"plugins\" + File.separator + \"sonic-ios-bridge\");\n if (system.contains(\"win\")) {\n ps = Runtime.getRuntime().exec(\"cmd /c \"+sib.getAbsolutePath()+\" run xctest -u \"+udId+\" -b bytedance.FastbotRunner.xctrunner -e BUNDLEID=com.yangcong345.match -e duration=5 -e throttle=300\");\n } else {\n ps = Runtime.getRuntime().exec(\"sh -c \"+sib.getAbsolutePath()+\" run xctest -u \"+udId+\" -b bytedance.FastbotRunner.xctrunner -e BUNDLEID=com.yangcong345.match -e duration=5 -e throttle=300\");\n }\n InputStreamReader inputStreamReader = new InputStreamReader(ps.getInputStream());\n BufferedReader stdInput = new BufferedReader(inputStreamReader);\n String s;\n while (ps.isAlive()) {\n try{\n if ((s = stdInput.readLine()) != null) {\n log.sendStepLog(StepType.INFO,\"ps msg\",s)\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n stdInput.close();\n inputStreamReader.close();\n iosStepHandler.startIOSDriver(udId, SibTool.startWda(udId)[0]);\n}\n\n//懒人版\n def test2() {\n String udId = iosStepHandler.udId\n LogUtil log = iosStepHandler.log\n File sib = new File(\"plugins\" + File.separator + \"sonic-ios-bridge\");\n String res = ProcessCommandTool.getProcessLocalCommandStr(sib.getAbsolutePath()+\" run xctest -u \"+udId+\" -b bytedance.FastbotRunner.xctrunner -e BUNDLEID:com.yangcong345.match -e duration=5 -e throttle=300\");\n log.sendStepLog(StepType.INFO,\"ps msg\",res)\n }\n\ntest()\n//test2()","time":"2023-05-25 20:56:32.238","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":2,"cid":409}
[sonic-driver-core] 2023-05-25 20:56:32 [INFO] close session successful!
2023-05-25 20:56:32.503 - INFO 64805 --- [ios-test-task-boot-13823-409-d2d6e3b629ce0d7f4ad45675c62df140996ccf7a] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"退出连接设备","log":"","time":"2023-05-25 20:56:32.503","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":2,"cid":409}
2023-05-25 20:56:32.504 - INFO 64805 --- [Thread-746] o.cloud.sonic.agent.bridge.ios.SibTool : WebDriverAgent print thread shutdown.
2023-05-25 20:56:32.504 - INFO 64805 --- [ios-test-task-boot-13823-409-d2d6e3b629ce0d7f4ad45675c62df140996ccf7a] org.cloud.sonic.agent.tests.LogUtil : {"msg":"status","des":"","log":"","time":"2023-05-25 20:56:32.504","rid":13823,"udId":"d2d6e3b629ce0d7f4ad45675c62df140996ccf7a","status":1,"cid":409}
2023-05-25 20:56:32.504 - INFO 64805 --- [TestNG-PoolService-0] org.cloud.sonic.agent.tests.IOSTests : Task【ios-test-task-boot-13823-409-d2d6e3b629ce0d7f4ad45675c62df140996ccf7a】finish.
===============================================
Default Suite
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0
`