Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created June 24, 2013 18:25
Show Gist options
  • Save freynaud/5852257 to your computer and use it in GitHub Desktop.
Save freynaud/5852257 to your computer and use it in GitHub Desktop.
String[] a = {"-port", "4444", "-host", "localhost",
"-aut", SampleApps.getUICatalogFile(),
"-aut", SampleApps.getUICatalogIpad(),
"-aut", "/Users/freynaud/eBay.app"};
IOSServerConfiguration config = IOSServerConfiguration.create(a);
IOSServer server = new IOSServer(config);
server.start();
IOSCapabilities cap = IOSCapabilities.iphone("eBay");
cap.setCapability(IOSCapabilities.SIMULATOR, true);
cap.setCapability(IOSCapabilities.IOS_SWITCHES,
Arrays.asList(new String[]{"-e", "useQA", "YES"}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment