bytedance / Fastbot_iOS

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

ios monkey执行failed,帮忙看下是什么原因导致的 #51

Closed yayyds closed 3 years ago

yayyds commented 3 years ago

[fastbot] : build state cost: 0.000s action cost: 0.000s total cost 0.000s 2021-09-14 18:04:42.297691+0800 FastbotRunner-Runner[273:79023] ticker shot desc cost 0.039769 netact 0.000741 second, left 35060.206984s 2021-09-14 18:04:42.454325+0800 FastbotRunner-Runner[273:4394] state g0s46 action SCROLL_RIGHT_LEFT pos[0,480,374,812] throttle 0.30 2021-09-14 18:04:42.946799+0800 FastbotRunner-Runner[273:96294] ticker shot desc cost 0.000004 netact 0.000023 second, left 35059.557825s 2021-09-14 18:04:42.946995+0800 FastbotRunner-Runner[273:96294] get desc failed 0

:0: error: -[FastbotRunner testFastbot] : Failed to get screenshot: Not authorized for performing UI testing actions. t = 8147.12s Tear Down Test Case '-[FastbotRunner testFastbot]' failed (8147.335 seconds). Test Suite 'FastbotRunner' failed at 2021-09-14 18:04:43.169. Executed 1 test, with 1 failure (0 unexpected) in 8147.335 (8147.337) seconds Test Suite 'FastbotRunner.xctest' failed at 2021-09-14 18:04:43.170. Executed 1 test, with 1 failure (0 unexpected) in 8147.335 (8147.338) seconds Test Suite 'Selected tests' failed at 2021-09-14 18:04:43.172. Executed 1 test, with 1 failure (0 unexpected) in 8147.335 (8147.342) seconds 2021-09-14 18:04:43.356 xcodebuild[21444:864516] [MT] IDETestOperationsObserverDebug: 8153.789 elapsed -- Testing started completed. 2021-09-14 18:04:43.356 xcodebuild[21444:864516] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2021-09-14 18:04:43.356 xcodebuild[21444:864516] [MT] IDETestOperationsObserverDebug: 8153.789 sec, +8153.789 sec -- end 2021-09-14 18:04:43.662 xcodebuild[21444:864516] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Execution/Schemes/IDETestSchemeAction.m:537 Details: Error saving invocation record to resultBundlePath:Error Domain=IDEFoundationErrorDomain Code=12 "The scheme actions invocation record could not be saved due to an error." UserInfo={NSLocalizedDescription=The scheme actions invocation record could not be saved due to an error., NSUnderlyingError=0x7f893fd82690 {Error Domain=(extension in IDEFoundation):__C.IDESchemeActionTestAttachment.Error Code=0 "failed to import attachment at path /Users/zhangyajuan/Library/Developer/Xcode/DerivedData/Fastbot-iOS-eiifnnvhwfvbmjbrajpflbvwxeto/Logs/Test/Test-FastbotRunner-2021.09.14_15-48-48-+0800.xcresult/Staging/1_Test/Attachments/Screenshot_0D91D00F-C42A-4C7F-9978-718A457A49D6.jpg, underlying error: noEntry"}} Object: Method: -testOperationWithSchemeOperationParameters:testManager:buildOperation:buildParameters:schemeCommand:actionRecord:testRunSpecificationGroups:coverageBuildableInfos:deviceAvailableChecker:outError:actionCallbackBlock: Thread: {number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. Test session results, code coverage, and logs: /Users/zhangyajuan/Library/Developer/Xcode/DerivedData/Fastbot-iOS-eiifnnvhwfvbmjbrajpflbvwxeto/Logs/Test/Test-FastbotRunner-2021.09.14_15-48-48-+0800.xcresult Failing tests: FastbotRunner: -[FastbotRunner testFastbot] ** TEST FAILED **
geron-cn commented 3 years ago

Not authorized for performing UI testing actions.

related: #48