#!/usr/bin/env ruby require 'zip/zip' require 'fileutils' require 'json' require 'tmpdir' require 'uri' require File.join(File.dirname(__FILE__),"calabash-ios-sim") @script_dir = File.join(File.dirname(__FILE__), '..', 'scripts') @settings_file = File.join(FileUtils.pwd, ".testautoi_settings") def print_usage puts < can be one of setup Set up test automation configurations run Start test automation build Build the instrumented app. Use getsource command first to download source to Use 'sim build ' for Simulator install Install the app install tools Download and install tools from Subversion. Tools for real iOS devices, not for Simulator. uninstall Uninstall the app launch Launch the app getip Get the device's IP address gen Generate the skeleton of features directory sim start Start an iOS Simulator sim quit Quit the iOS Simulator sim version [option] One of version options: 5.0, 5.1, 6.0, and 6.1 sim device [option] One of device options: iPad, iPad_Retina, iPhone, iPhone_Retina, iPhone_Retina_4inch sim pref [key] [value] Keys: KeyboardAutocorrection KeyboardAutocapitalization Values: true false devices List connected iOS Devices getsource list List of source branches getsource Download a branch of app source getsouce trunk Download the trunk of app source getbuild list List available builds in the build drop getbuild Download the build with . Use 'sim getbuild ' for Simulator getbuild trunk Download the trunk build Use 'sim getbuild trunk' for Simulator getscript list List available scripts getscript