instruments命令行启动UIAutomation脚本

来源:互联网 发布:建立js首先应该怎么做 编辑:程序博客网 时间:2024/06/13 12:14

instruments -w "iPhone 5 (8.1 Simulator)" -t /Applications/Xcode6.1.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /Users/lixinsheng/Library/Developer/CoreSimulator/Devices/506EDA8B-C87F-4085-B8CB-A383B14D15BA/data/Containers/Bundle/Application/61A63314-8E4B-4967-9AAB-ED32A5660CD5/Feedback.app -e UIASCRIPT /UIAutomation/UIAutomation_instruments_cmd.js -e UIARESULTSPATH /UIAutomation -V


1.当不知道当前机器的设备名得时候,使用-w 随便填写字符串回车,就会看见当前机器的设备列表

2.模板只有2个位置,一个在Application目录一个在用户的Library目录。tree grep或者find就可以找到

3.需要指定启动哪个应用进行测试,要找到具体的app路径,xcode6位置变了,可以通过xcode的device找到对应模拟器的identifer,然后find查找

4.-e 大写变量一定要携带 第一个指定js路径 第二个指定结果路径 

5.-v 打印日志


0 0
原创粉丝点击