次のコマンドを使用して、コマンド ラインから 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)で問題なく動作します。
ありがとう。