iphone - Can the UI Automation instrument be run from the command line? -


is there way open uiautomation instrument through terminal?

will possible write applescript open apple's uiautomation tool , load application tested?

can please tell me there way through scripting or through command line can open uiautomation , select app tested, select test script?

instruments -t /developer/platforms/iphoneos.platform/developer/library/instruments/\ plugins/automationinstrument.bundle/contents/resources/automation.tracetemplate \ <full_path_to_application> -e uiascript <path_to_script.js> \ -e uiaresultspath <output_results_path> 

for xcode >= 4.5

instruments -t /applications/xcode.app/contents/applications/instruments.app/contents/plugins/\ automationinstrument.bundle/contents/resources/automation.tracetemplate \ <full_path_to_application> -e uiascript <path_to_script.js> \ -e uiaresultspath <output_results_path> 

for xcode >= 6.1

instruments -w <device id> -t \ /applications/xcode.app/contents/applications/instruments.app/contents/plugins/\ automationinstrument.xrplugin/contents/resources/automation.tracetemplate \ <full_path_to_application> -e uiascript <path_to_script.js> \ -e uiaresultspath <output_results_path> 

there few important things note though:

  1. the -w parameter not required unless want run scripts on device. if want run scripts on simulator, omit parameter command.
  2. full_path_to_application path .app file created simulator. me, path

    /users/fwasim/library/application support/iphone simulator/5.0/applications/aa6ba2e1-d505-4864-becc-29adee28194d/name_of_application.app

    this path might different else depending on ios version running on simulator. remember put path in double quotation marks.

  3. the path_to_script.js should full path automation script written in javascript saved. remember put path in double quotation marks.

  4. lastly output results path path want save output results. remember put path in double quotation marks.

these points had been missing on , getting of errors mentioned above.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -