iOS 上是否有像 Android 上的 Monkey 一样的 UI 练习器?
我正在寻找一种开发工具,它允许我将随机生成的用户输入(触摸、硬键、手势)发送到 iOS 设备(而不是模拟器),例如 Monkey。
I'm looking for a development tool that will allow me to send randomly generated user inputs (touches, hardkeys, gestures) to an iOS devices (not simulator) like Monkey on Android.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Instruments 中的 UI 自动化工具允许您编写与用户界面交互的脚本,在此过程中截取屏幕截图或测试有效响应。这些测试脚本是用 JavaScript 编写的,可以让您运行相当复杂的测试。
我运行的测试始终是定向的,但我不明白为什么你不能使用 random() 函数之类的东西来触发随机放置的触摸事件等。由此,你可以构建自己的自定义类似猴子的工具,用于敲击您的应用程序。更好的是,您可以与此仪器同时运行其他仪器,以识别潜在的内存泄漏或 CPU 热点。
我在我的课程中展示了 UI 自动化如何作为测试会话的一部分工作在 iTunes U 上,可以查看我的笔记此处。
The UI Automation instrument in Instruments allows you to script interaction with your user interface, taking screenshots or testing for valid responses along the way. These testing scripts are written in JavaScript, which lets you run fairly complex tests.
The tests I've run have always been directed, but I don't see a reason why you couldn't use something like a random() function to trigger randomly placed touch events, etc. From this, you could build your own custom Monkey-like tool for hammering on your application. Even better, you could run other instruments at the same time as this one to identify potential memory leaks or CPU hotspots.
I show how UI Automation works as part of the Testing session in my course on iTunes U, for which my notes can be viewed here.