I was looking for some method to know about the free heap amount in Android, and I stumbled upon this in ActivityManager class:
ActivityManager#isUserAMonkey()
Anyways, actually Monkey is a program that generates random touches, clicks, gestures etc for application stress testing.
boolean isUserAMonkey() Returns "true" if the user interface is currently being messed with by a monkey.
ActivityManager#isUserAMonkey()
Haha.. and then immediately a recently reported bug of our project flashed... the bug said, someone tried to press refresh 20 times without giving a break!! Yapp.. isUserBeingAMonkey was surely true then :D
Oh.. there was also a report that some of our testers have rotated the screen over 600 times in the same view!! I wish I could call this isUserBeingAMonkey() at that time!!
Anyways, actually Monkey is a program that generates random touches, clicks, gestures etc for application stress testing.
No comments:
Post a Comment