Esempio n. 1
0
 protected URL getRemoteURL() {
   try {
     URL remote = new URL("http://" + config.getHost() + ":" + config.getPort() + "/wd/hub");
     return remote;
   } catch (MalformedURLException e) {
     throw new RuntimeException(e);
   }
 }
Esempio n. 2
0
 @BeforeClass
 public void startServer() throws Exception {
   String[] args = {
     "-port",
     "4444",
     "-host",
     "localhost",
     "-aut",
     SampleApps.getUICatalogFile(),
     "-aut",
     SampleApps.getUICatalogIpad(),
     "-aut",
     SampleApps.getGeocoderFile(),
     "-aut",
     SampleApps.getIntlMountainsFile(),
     "-aut",
     SampleApps.gettestNoContentFile(),
     "-aut",
     SampleApps.getPPNQASampleApp(),
     "-beta",
     "-folder",
     "applications",
     "-simulators"
   };
   config = IOSServerConfiguration.create(args);
   server = new IOSServer(config);
   server.start();
 }