Jayesh Muralidharan
Jayesh Muralidharan

Reputation: 131

Running Apple instruments for Automation from Terminal

How can I run apple instruments for iOS automation (iPhone/iPad) from the command line? I saw some blogs which said the below command

instruments -w -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT

I have not been able to get this running.

Upvotes: 3

Views: 3971

Answers (1)

BJ Homer
BJ Homer

Reputation: 49054

Broken out by parameter for easier reading:

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

Upvotes: 3

Related Questions