Example #1
0
 public void clean() {
   log.info("Cleaning server " + getLabel().getName());
   select();
   new ContextMenu("Clean...").select();
   new DefaultShell("Server");
   new PushButton("OK").click();
   waitForPublish();
 }
Example #2
0
  protected void operateServerState(String menuItem, ServerState resultState) {
    select();
    new ContextMenu(menuItem).select();
    new WaitUntil(new JobIsRunning(), TIMEOUT);
    new WaitUntil(new ServerStateCondition(resultState), TIMEOUT);
    new WaitWhile(new JobIsRunning(), TIMEOUT);

    // check if the server has expected state after jobs are done
    new WaitUntil(new ServerStateCondition(resultState), TIMEOUT);
  }
Example #3
0
  public void delete(boolean stopFirst) {
    final String name = getLabel().getName();
    log.info("Deleting server " + name + ". Stopping server first: " + stopFirst);
    select();
    ServerState state = getLabel().getState();

    new ContextMenu("Delete").select();
    new WaitUntil(new ShellWithTextIsActive("Delete Server"), TimePeriod.NORMAL);
    if (!ServerState.STOPPED.equals(state) && !ServerState.NONE.equals(state)) {
      new CheckBox().toggle(stopFirst);
    }
    new PushButton("OK").click();
    new WaitWhile(new ServerExists(name), TIMEOUT);
    new WaitWhile(new JobIsRunning(), TIMEOUT);
  }
Example #4
0
 public ServerEditor open() {
   select();
   new ContextMenu("Open").select();
   return createServerEditor(getLabel().getName());
 }
Example #5
0
 public ModifyModulesDialog addAndRemoveModules() {
   select();
   new ContextMenu(ADD_AND_REMOVE).select();
   return new ModifyModulesDialog();
 }
Example #6
0
 public void publish() {
   log.info("Publishing server " + getLabel().getName());
   select();
   new ContextMenu("Publish").select();
   waitForPublish();
 }