jonathanpenn / ui-auto-monkey

UI AutoMonkey is a simple stress testing script for iOS applications that runs in UI Automation and Instruments. Grass fed. Free range.
http://cocoamanifest.net
MIT License
1.47k stars 249 forks source link

More elements on MainWindow, dump elements too slow. #18

Open vigossjjj opened 9 years ago

vigossjjj commented 9 years ago

I configure the anr setting, it will invoke the elementAccessorDump form tuneup, if on current window had more elements e.g. 200+, the method "elementAccessorDump" become to too slow, about 10 minutes duration.

If we can get the logElementTree() output to instead of elementAccessorDump's return will be improved greatly!But logElementTree() return undefined, only log all the element tree,I could not found a workaround to deal it.

BruceBGordon commented 9 years ago

I don't have a quick answer. You can supply any fingerprint function so you could experiment and try to find a more efficient one. You could try to figure out why elementAccessorDump is so slow and that might give clues on how to speed it up. Sharing the problem at https://github.com/alexvollmer/tuneup_js/issues might help.