How to avoid lock screen event during monkey test

Viewed 1270

i am running monkey tests and i am facing issues with lock screen.

i have tried running tests with default command as below

"monkey -p com.xyz -v 1500000 -s 10000 --throttle 15000"

The tests start fine but eventually get to lock screen and thereby never able to unlock as i have alphanumeric key code as password which is very hard to guess by random events of monkey. i just want the monkey to run only on app and ignore the lock screen events completely

i am enabling Never go to sleep from settings, please let me know if i can avoid monkey to stop pressing the power key.

1 Answers
Related