Esempio n. 1
0
 public void start(String optionsString) {
   String result =
       getString(
           "getNewBrowserSession",
           new String[] {browserStartCommand, browserURL, extensionJs, optionsString});
   setSessionInProgress(result);
 }
  @Test
  public void testCanStopTheSeleneseSessionWhenASessionIsInProgress() {
    final HttpCommandProcessor processor;

    processor =
        new HttpCommandProcessor("a Server", 1234, "", "a url") {
          @Override
          public String doCommand(String commandName, String[] args) {
            assertEquals("testComplete", commandName);
            assertNull(args);
            return null;
          }
        };
    processor.setSessionInProgress("123456789");
    processor.stop();
  }
Esempio n. 3
0
 public void stop() {
   if (hasSessionInProgress()) {
     doCommand("testComplete", null);
   }
   setSessionInProgress(null);
 }