How to prevent Monkey test from opening notification panel and turning OFF wifi?
Asked Answered
P

1

8

I am performing Monkey testing on my Android app. While performing events, Monkey pulls down the notification panel and clicks on wifi/mobile data icons, hence turning them OFF.

I am using this command: adb shell monkey -p package_name --throttle 100 -s 999 -v 50000

I have tried all the options given here: https://developer.android.com/studio/test/monkey.html

Is there any way to prevent Monkey test from opening notification panel?

Printmaking answered 10/10, 2016 at 6:29 Comment(0)
E
0

This seems to solve this problem:

--pct-touch 100 --pct-syskeys 0
Eldrid answered 9/4, 2020 at 8:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.