We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用模拟器运行 CrashMonkey 过程中出现了一次锁屏操作,结果 Monkey 无法自行解锁。
运行命令:
$ ./smart_monkey -a chj.ToDoList -w E23DE92A-B6B1-4AEF-9632-4DA8DD7CE630
E23DE92A-B6B1-4AEF-9632-4DA8DD7CE630 是 iPhone 6 (8.3 Simulator) 的 identifier
运行配置: custom.js 没有进行任何修改,使用的是 master 分支上的 custom.js 。
运行过程关键 Log :
INSTRUMENTS_TRACE_PATH : /Users/hengjiechen/Develop/iOS/research/CrashMonkey4IOS/bin/*.trace RESULT_BASE_PATH : /Users/hengjiechen/Develop/iOS/research/CrashMonkey4IOS/bin/smart_monkey_result {:app_path=>"chj.ToDoList", :device=>"E23DE92A-B6B1-4AEF-9632-4DA8DD7CE630", :run_count=>1, :time_limit_sec=>nil, :detail_event_count=>50} =================================== Start Test (1/1) ======================================= 2015-06-07 23:01:29.941 instruments[7256:210314] WebKit Threading Violation - initial use of WebKit from a secondary thread. 2015-06-07 23:01:30.729 instruments[7264:210381] WebKit Threading Violation - initial use of WebKit from a secondary thread. Attempting iOS Simulator system log capture via tail system.log. BundleID was found: chj.ToDoList Run: ["instruments", "-w", "E23DE92A-B6B1-4AEF-9632-4DA8DD7CE630", "-t", "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate", "chj.ToDoList", "-e", "UIASCRIPT", "/Users/hengjiechen/Develop/iOS/research/CrashMonkey4IOS/bin/smart_monkey_result/report_20150607230129/custom.js", "-e", "UIARESULTSPATH", "/Users/hengjiechen/Develop/iOS/research/CrashMonkey4IOS/bin/smart_monkey_result/report_20150607230129"] 2015-06-07 23:01:31.594 instruments[7269:210442] WebKit Threading Violation - initial use of WebKit from a secondary thread. 2015-06-07 15:01:39 +0000 Default: {"width":375,"height":667} 2015-06-07 15:01:39 +0000 Debug: target.tapWithOptions({x:"337.0170464913826", y:"268.924522628542"}, {touchCount:"1", tapCount:"1", duration:"0"}) 2015-06-07 15:01:39 +0000 Debug: target.captureRectOnScreenWithName("{origin:{x:0.00,y:0.00}, size:{height:667.00,width:375.00}}", UIScreen, "monkey-2015-06-07T15-01-39-558Z") 2015-06-07 15:01:39 +0000 Screenshot captured. ... 2015-06-07 15:01:47 +0000 Debug: target.flickFromTo({x:"55.99269334925339", y:"628.6212073885836"}, {x:"284.4106543343514", y:"408.6799378818832"}) 2015-06-07 15:01:47 +0000 Debug: target.captureRectOnScreenWithName("{origin:{x:0.00,y:0.00}, size:{height:667.00,width:375.00}}", UIScreen, "monkey-2015-06-07T15-01-47-423Z") 2015-06-07 15:01:47 +0000 Screenshot captured. 2015-06-07 15:01:47 +0000 Debug: target.lockForDuration("0.3549308124929667") 2015-06-07 15:01:49 +0000 Debug: target.systemApp().mainWindow().scrollViews().firstWithPredicate("ANY elements.name == 'SlideToUnlock' OR ANY elements.name == 'SlideToSetup' OR ANY elements.name == 'Passcode field'").dragInsideWithOptions({endOffset:{x:0.90,y:0.90}}, duration:"0.5", startOffset:{x:0.20,y:0.90}}}) 2015-06-07 15:01:52 +0000 Debug: Unlock failed. Retrying up to 2 more time(s). 2015-06-07 15:01:52 +0000 Debug: target.systemApp().mainWindow().scrollViews().firstWithPredicate("ANY elements.name == 'SlideToUnlock' OR ANY elements.name == 'SlideToSetup' OR ANY elements.name == 'Passcode field'").dragInsideWithOptions({endOffset:{x:0.90,y:0.90}}, duration:"0.5", startOffset:{x:0.20,y:0.90}}}) 2015-06-07 15:01:53 +0000 Debug: Unlock failed. Retrying up to 1 more time(s). 2015-06-07 15:01:53 +0000 Debug: target.systemApp().mainWindow().scrollViews().firstWithPredicate("ANY elements.name == 'SlideToUnlock' OR ANY elements.name == 'SlideToSetup' OR ANY elements.name == 'Passcode field'").dragInsideWithOptions({endOffset:{x:0.90,y:0.90}}, duration:"0.5", startOffset:{x:0.20,y:0.90}}}) 2015-06-07 15:01:55 +0000 Debug: target.captureRectOnScreenWithName("{origin:{x:0.00,y:0.00}, size:{height:667.00,width:375.00}}", UIScreen, "monkey-2015-06-07T15-01-55-572Z") 2015-06-07 15:01:55 +0000 Screenshot captured. 2015-06-07 15:01:55 +0000 Warning: Target app go to outside, trigger re-launch action.
然后 CrashMonkey 就停在此处,然后模拟器一直保持锁屏界面,直到手动解锁后 CrashMonkey 才自动继续执行。
The text was updated successfully, but these errors were encountered:
已经确认是 UIAutomation bug,在模拟器上使用lockForDuration()解锁失败
lockForDuration()
Sorry, something went wrong.
No branches or pull requests
使用模拟器运行 CrashMonkey 过程中出现了一次锁屏操作,结果 Monkey 无法自行解锁。
运行命令:
E23DE92A-B6B1-4AEF-9632-4DA8DD7CE630 是 iPhone 6 (8.3 Simulator) 的 identifier
运行配置:
custom.js 没有进行任何修改,使用的是 master 分支上的 custom.js 。
运行过程关键 Log :
然后 CrashMonkey 就停在此处,然后模拟器一直保持锁屏界面,直到手动解锁后 CrashMonkey 才自动继续执行。
The text was updated successfully, but these errors were encountered: