开发者

UI Stress Testing on Android

is there a way for me to do a sort of UI Stress test, similar to that of monkey runner.

I want my stress tester to click randomly on the screen until something is prompted.

however, 开发者_高级运维i want to be able to detect if a dialog box comes up, then i want to put in some values, or if there is a prompt for me to upload something, i'll upload a random picture. Monkey runner does not have the functionality of knowing what dialog boxes come up right? This stress tester that i am trying to configure has to be a one size fits all stress tester.


The monkey itself doesn't know what your UI is showing, but your app does. You might find the isUserAMonkey API useful. While its existence has been a source of amusement for many, it exists for these cases where you want your app to behave differently for a monkey than for a real user.


Take a look at robotium. It also supports black-box UI testing of Android applications.


This is how you could try to do this with testobject.com:

UI Stress Testing on Android

The function randomInput(...) is invoking the Exerciser Monkey. It's not completely bullet-proof, but might do the trick in your case.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜