在不同的设备/仿真器上使用ADB猴子种子
我正在为Android应用程序自动化猴子测试。
我的问题是,如果我在猴子造成崩溃时获得种子,那么使用种子再次复制跨设备崩溃的要求是什么?
像Android OS版本一样,精确模拟器。有可能吗?
我找不到使用其他设备的确切种子要求。
I am working on automating monkey testing for Android apps.
My question is, if I obtain the seed when monkey causes a crash, what are the requirements to use the seed to reproduce the crash again across devices?
Like Android os version, exact emulator. Is it even possible?
I couldn't find the exact seed requirements for using another device.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这完全取决于崩溃的性质以及猴子在原始设备上触发它的步骤。
例如,如果启动屏幕3立即崩溃,只要猴子做一些触发您的应用程序以导航到屏幕3的事情,它将重现崩溃。但是,原始种子是否会导致该结果在抽象中不可能知道。您所能做的就是尝试一下,看看会发生什么。
如果它不是绝对相同的,请运行绝对相同的代码,则基于该种子的猴子动作可能不会再现崩溃。再说一次,它可能。我们没有办法知道。
通常,由于猴子正在执行UI输入,因此您希望设备从UI的角度(例如屏幕尺寸和密度)尽可能接近。作为反示例,如果设备具有不同量的RAM或闪存存储空间,则这些差异可能不会影响猴子的结果。
That depends entirely on the nature of the crash and the steps the monkey took to trigger it on the original device.
For example, if launching Screen 3 crashes immediately, so long as the monkey does something that triggers your app to navigate to Screen 3, it will reproduce the crash. However, whether the original seed will lead to that outcome is impossible to know in the abstract. All you can do is try it and see what happens.
If it is not absolutely identical, running absolutely identical code, the monkey actions based on that seed might not reproduce the crash. Then again, it might. We have no way to know.
In general, since the monkey is doing UI input, you would want the devices to be as close as possible from a UI standpoint, such as screen size and density. As a counter-example, if the devices have differing amounts of RAM or flash storage space, it is possible that those differences will not impact the monkey results.