Android 上的 UI 压力测试

发布于 2024-12-07 20:35:45 字数 193 浏览 2 评论 0原文

有没有办法让我做一种 UI 压力测试,类似于猴子跑步者的测试。

我希望我的压力测试仪在屏幕上随机单击,直到出现提示。

但是,我希望能够检测是否出现对话框,然后我想输入一些值,或者如果提示我上传某些内容,我将上传一张随机图片。 Monkey runner 不具备知道出现什么对话框的功能吗?我尝试配置的压力测试仪必须是一款适合所有压力测试仪。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

做个ˇ局外人 2024-12-14 20:35:45

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.

往日 2024-12-14 20:35:45

查看robotium。它还支持Android应用程序的黑盒UI测试。

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

陈年往事 2024-12-14 20:35:45

您可以尝试使用 testobject.com 来执行此操作:

在此处输入图像描述

函数 randomInput(...) 正在调用 Exercerer Monkey。它并不完全防弹,但可能对你的情况有用。

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

enter image description here

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文