Search code examples
androidmonkey-testing

How to prevent Monkey test from pressing the home button?


I am running Monkey test on my android app, is there any way to prevent it from pressing the home button?


Solution

  • One approach would be to use screen pinning to force the Monkey to stay within your app. Just pin your app to the screen before starting testing.