bytedance / Fastbot_iOS

About Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
563 stars 114 forks source link

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

Open xiaoluosun opened 1 year ago

xiaoluosun commented 1 year ago

检查执行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 `