【发布时间】:2011-11-16 06:50:40
【问题描述】:
我正在使用以下命令从命令行运行 iOS UIAutomation 测试:
instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/ctester/Library/Developer/Xcode/DerivedData/TestView-acwgjlejvnjkqietyevgfnsjngpd/Build/Products/Debug-iphonesimulator/TestView.app -e UIASCRIPT ta.js -e UIARESULTSPATH .
TestView.app在模拟器中成功启动,但脚本无法运行。
我尝试指定一个不存在的脚本,没有报告错误。所以我猜参数-e UIASCRIPT ta.js ... 被忽略了。
我笔记本电脑上的instruments 命令版本是:
instruments, version 1.0
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
重要吗?
TestView.app 和 ta.js 在instruments.app(GUI) 中工作得很好。
谢谢。
【问题讨论】:
标签: macos ios-ui-automation xcode-instruments