如何从命令行运行iOS自动化(iPhone / iPad)的苹果乐器?我看到一些博客说下面的命令
instruments -w -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT
我无法让它继续运行。
答案 0 :(得分:3)
按参数分解以便于阅读:
mkdir TestResults
instruments
-D TestResults/TestTrace/theTrace.trace
-t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
/Absolute/Path/to/built/app/For/Simulator/AppName.app
-e UIARESULTSPATH TestResults/
-e UIASCRIPT Tests/some_test_file.js