Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开始测试后没有启动App,导致执行失败。如果手动把App打开,是可以正常执行测试的 #122

Open
xiaoluosun opened this issue Mar 17, 2023 · 0 comments

Comments

@xiaoluosun
Copy link

检查执行log,发现是Setting up automation session这一步未执行成功,请教下可能是啥原因呢?
`2023-03-17 10:17:18.216003+0800 FastbotRunner-Runner[6890:234151] 端口开启成功,并监听客户端请求连接...
2023-03-17 10:17:18.216050+0800 FastbotRunner-Runner[6890:234151] netclient init from setCommandExecutor: <netclient: 0x2827489c0>
2023-03-17 10:17:18.216401+0800 FastbotRunner-Runner[6890:234151] webserver add handle method: GET /status
2023-03-17 10:17:18.216442+0800 FastbotRunner-Runner[6890:234151] webserver add handle method: POST /setTotalVC
2023-03-17 10:17:18.224457+0800 FastbotRunner-Runner[6890:234151] web server begin listen 9197 !!! http://172.26.250.7:9197/
t = 1.42s Pressing Home button
t = 2.51s Open com.luojilab.LuoJiFM-IOS
t = 2.60s Launch com.luojilab.LuoJiFM-IOS
t = 2.60s Terminate com.luojilab.LuoJiFM-IOS:270
/Users/sun/Documents/xcodeworkspace/Fastbot_iOS/Fastbot-iOS/FastbotRunner/FastbotRunner.m:54: error: -[FastbotRunner testFastbot] : Failed to terminate com.luojilab.LuoJiFM-IOS:270: Failed to terminate com.luojilab.LuoJiFM-IOS:0
t = 62.79s Tear Down
Test Case '-[FastbotRunner testFastbot]' failed (62.788 seconds).

Test Suite 'FastbotRunner' failed at 2023-03-17 10:18:20.715.
Executed 1 test, with 1 failure (0 unexpected) in 62.788 (62.789) seconds
Test Suite 'FastbotRunner.xctest' failed at 2023-03-17 10:18:20.716.
Executed 1 test, with 1 failure (0 unexpected) in 62.788 (62.790) seconds
Test Suite 'Selected tests' failed at 2023-03-17 10:18:20.716.
Executed 1 test, with 1 failure (0 unexpected) in 62.788 (62.791) seconds
2023-03-17 10:18:21.015 xcodebuild[48724:107736385] [MT] IDETestOperationsObserverDebug: 65.729 elapsed -- Testing started completed.
2023-03-17 10:18:21.015 xcodebuild[48724:107736385] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2023-03-17 10:18:21.015 xcodebuild[48724:107736385] [MT] IDETestOperationsObserverDebug: 65.729 sec, +65.729 sec -- end

Test session results, code coverage, and logs:
/Users/sun/Library/Developer/Xcode/DerivedData/Fastbot-iOS-bxwiybhedzlhfhgpmrldwnigpdej/Logs/Test/Test-FastbotRunner-2023.03.17_10-17-10-+0800.xcresult

Failing tests:
-[FastbotRunner testFastbot]

** TEST FAILED **
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant