use of org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method openWizardFromCentral.
/**
* Opens a new OpenShift application wizard from JBoss Central.
*/
public void openWizardFromCentral() {
new DefaultToolItem(new WorkbenchShell(), OpenShiftLabel.Others.RED_HAT_CENTRAL).click();
new WaitUntil(new CentralIsLoaded());
new InternalBrowser().execute(OpenShiftLabel.Others.OPENSHIFT_CENTRAL_SCRIPT);
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
signToOpenShiftAndClickNext();
new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
use of org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell in project linuxtools by eclipse.
the class AbstractView method getViewCTabItem.
/**
* Gets the view c tab item.
*
* @return the view c tab item
*/
protected CTabItem getViewCTabItem() {
if (cTabItem != null && cTabItem.isDisposed()) {
cTabItem = null;
}
if (cTabItem == null) {
if (!isOpen()) {
return cTabItem;
}
log.debug("Looking up CTabItem with text " + getTitle());
cTabItem = new DefaultCTabItem(new WorkbenchShell(), viewNameMatcher);
}
return cTabItem;
}
use of org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell in project jbosstools-openshift by jbosstools.
the class SecureStorage method verifySecureStorageOfPassword.
/**
* Verifies whether state of password storage for specified user is in correct
* state.
*
* @param username
* @param server
* URL of OpenShift server without https prefix
* @param shouldExist
* if true, password should be present in secure storage, if false,
* there should be no password in secure storage for specified
* connection
* @param serverType
* OpenShift v2 or v3 server
*/
public static void verifySecureStorageOfPassword(String username, String server, boolean shouldExist) {
WorkbenchPreferenceDialog workbenchPreferenceDialog = new WorkbenchPreferenceDialog();
StoragePreferencePage secureStoragePreferencePage = new StoragePreferencePage(workbenchPreferenceDialog);
new WorkbenchShell().setFocus();
workbenchPreferenceDialog.open();
new WorkbenchPreferenceDialog().select(secureStoragePreferencePage);
secureStoragePreferencePage.selectContentTab();
boolean exists = secureStoragePreferencePage.passwordExists("[Default Secure Storage]", getPluginId(), server, username);
workbenchPreferenceDialog.ok();
assertTrue(shouldExist ? "Password wasn't present in secure storage while it should." : "Password was present in secure storage but it shouldn't.", shouldExist == exists);
}
use of org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method disableShowConsoleWhenOutputChanges.
private static void disableShowConsoleWhenOutputChanges() {
ConsoleView consoleView = new ConsoleView();
consoleView.open();
new WaitUntil(new ShowConsoleOutputToolItemIsAvailable(), TimePeriod.VERY_LONG);
DefaultToolItem showConsoleOnChange = new DefaultToolItem(new WorkbenchShell(), "Show Console Output When Standard Out Changes");
showConsoleOnChange.click();
}
use of org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell in project jbosstools-openshift by jbosstools.
the class StoreConnectionTest method invokeNewAppWizardFromCentral.
private void invokeNewAppWizardFromCentral() {
new DefaultToolItem(new WorkbenchShell(), OpenShiftLabel.Others.RED_HAT_CENTRAL).click();
new WaitUntil(new CentralIsLoaded());
new InternalBrowser().execute(OpenShiftLabel.Others.OPENSHIFT_CENTRAL_SCRIPT);
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
new DefaultShell("New OpenShift Application");
}
Aggregations