我已经在Instruments中编写了一个UI自动化脚本,并且脚本运行良好。现在,我想知道有什么方法可以简单地双击脚本并开始运行,或者至少不需要运行Xcode即可运行脚本。
最佳答案
instruments -w 1.device_id -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate 2.application -e UIASCRIPT 3.script -e UI-ARESULTSPATH 4.results path
标有1. 2. 3. 4.的变量是您键入的变量。使用此代码,输入您的设备ID,应用,脚本和结果路径,并在Terminal中运行整行