public void clean() { log.info("Cleaning server " + getLabel().getName()); select(); new ContextMenu("Clean...").select(); new DefaultShell("Server"); new PushButton("OK").click(); waitForPublish(); }
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); }
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); }
public ServerEditor open() { select(); new ContextMenu("Open").select(); return createServerEditor(getLabel().getName()); }
public ModifyModulesDialog addAndRemoveModules() { select(); new ContextMenu(ADD_AND_REMOVE).select(); return new ModifyModulesDialog(); }
public void publish() { log.info("Publishing server " + getLabel().getName()); select(); new ContextMenu("Publish").select(); waitForPublish(); }