在仪器中找不到 UI 记录器模板
我已经安装了 xcode4 并使用了泄漏和分配等分析。但是,我在 iOS 下的 Instruments 中没有找到新的 UI Recorder 模板,但我找到了一个名为 Automation 的模板。请让我知道如何在 xcode 4 的仪器中启用 UI 记录器模板,并且知道这个自动化模板的用途是什么?
谢谢。
I have installed xcode4 and used profiling for leaks and allocations, etc. However, I don't find the new UI Recorder template in instruments under iOS however I find a template named Automation. Please let me know how to enable UI Recorder template in instruments for xcode 4 and also any idea what is this Automation template for?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
iOS应用程序没有UI Recorder模板,这是做不到的。自动化模板用于自动化 UI 单元测试。它运行您编写的 JavaScript 测试脚本,该脚本能够驱动 UI 并记录成功或失败。您可以在 仪器用户指南。
当您不理解文档中的某些内容或某些内容未按预期工作时,先阅读文档然后再提出具体问题会很有帮助。如果您不阅读文档,您只会得到答案,人们要么向您重申文档,要么向您指出文档。
There is no UI Recorder template for iOS applications, it can't be done. The Automation template is for automated UI unit tests. It runs a JavaScript test script that you put together that is able to drive the UI and record successes or failures. You can find details about UI Automation in the Instruments Users Guide.
It helps a lot to read the documentation first and then ask specific questions later, when you don't understand something in the documentation or something doesn't work as expected. If you don't read the documentation, you'll just get answers where people either reiterate the documentation to you, or point you to the documentation.
那么,您可以记录 iOS 模拟器的用户操作。
确保在系统偏好设置的通用访问窗格中启用了“启用辅助设备的访问”设置。
在仪器中,只需选择“UI Recorder”模板 (Mac OS X)。
启动 iOS 模拟器,并通过在“选择目标”选择框中附加“iPhone 模拟器”进程将其连接到仪器。
按“录音”。
欢迎!
Well, instead you can record the user actions of the iOS simulator.
Make sure that the 'Enable access for assistive devices' setting is enabled in your Universal Access pane of System Preferences.
In instruments, just choose the 'UI Recorder' template (Mac OS X).
Start the iOS simulator and connect it to instruments by attaching the 'iPhone simulator' process in the 'choose target' selection box.
Press 'Record'.
Welcome!
我刚刚尝试了下面的罗兰建议,它有效 - 并不完美,它错过了播放一些录制的交互,但它有效并创建了一个可编辑的脚本!我正在使用 Xcode 4.6.2、Instruments 4.6 并运行 iPhone 6.1 模拟器。
I've just tried Rolands suggestion below and it works - not perfectly, it misses to play some recorded interactions, but it works and creates an editable script! I'm using Xcode 4.6.2, Instruments 4.6 and running iPhone 6.1 Simulator.