mokemokechicken / CrashMonkey

Monkey Test Tool For iOS
MIT License
199 stars 38 forks source link

If crashmonkey runs to different app, how can it be detected? #14

Open JohnnyWuMigme opened 9 years ago

JohnnyWuMigme commented 9 years ago

Hi Mokemokechicken, I wanna ask how do you detect if the UIA runs on different app? I notice in your demo (as attached screenshot) you can detect the different app and force to stop the current instruments task. But when I tried with your version it can't detect, the UIA just hangs over there unless manually taps it back. I also traced your code but not found relative coding. Can you give a hint how did you do that? Thanks!! screen shot 2015-05-15 at 2 39 12 pm

JohnnyWuMigme commented 9 years ago

https://github.com/jonathanpenn/ui-auto-monkey/pull/20

Here is the solution!! Great