如何在命令行上运行测试

时间:2014-12-19 10:59:02

标签: ios xcode testing instruments

如何在命令行上运行测试;例如:

instruments -w a2de620d4fc33e91f1f2f8a8cb0841d2xxxxxxxx -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate TestAutomation -e UIASCRIPT /Users/jc/Documents/Dev/TestAutomation/TestAutomation/TestUI/Test-2.js

但是此命令无法运行,并输出Instruments Usage Error : Specified target process is invalid

Xcode6.1的正确用法是什么?

1 个答案:

答案 0 :(得分:0)

我已经解决了问题,这是正确的命令,:

 instruments -w 69032487ed2e6c53fc186cdec058327028b7f9fd -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate mixtest -e UIASCRIPT ~/desktop/test.js