Android UI 测试:Monkey 只停留在几个 Activity 中
我一直在尝试使用 Monkey 对我的应用程序的 UI 进行压力测试。
我注意到随机击键无法遍历我的应用程序的所有活动。相反,它只是在其中几个之间不断循环。
你们有什么策略可以帮助 Monkey 遍历所有的 Activity 吗?
I've been trying to use Monkey to stress test the UI of my application.
What I've noticed is that the random key strokes are not able to traverse all the Activities of my application. It instead just keeps looping between a few of them.
Is there any strategy which you guys use to help Monkey traverse all the Activities?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据文档,默认情况下,猴子应该在所有活动和包之间导航,尽管这会以随机方式发生。因此,不能排除某些活动未被调用的可能性
希望您在运行它时没有设置任何约束。如果没有,请尝试列出约束中未调用的活动,然后运行该工具
http ://developer.android.com/guide/developing/tools/monkey.html
AS per the documentation by default monkey should navigate between all activities and packages though this would happen in a random fashion. Hence the probability of some activities not being called cannot be ruled out
Hope you have not set any Constraints while running it. If not try listing the activities that are not being called in Constraints and then run the tool
http://developer.android.com/guide/developing/tools/monkey.html