use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project linuxtools by eclipse.
the class NewDockerConnectionPage method open.
public void open() {
new DockerExplorerView().open();
new DefaultToolItem("Add Connection").click();
new WaitUntil(new ShellIsAvailable(NEW_DOCKER_CONNECTION_SHELL), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project linuxtools by eclipse.
the class NewDockerConnectionPage method search.
public void search(String connectionName) {
new PushButton("Search...").click();
new WaitUntil(new ShellIsAvailable("Docker Connection Selection"));
Table table = new DefaultTable();
table.getItem(connectionName).select();
new OkButton().click();
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project linuxtools by eclipse.
the class NewDockerConnectionPage method pingConnection.
public void pingConnection() {
Button testConnectionButton = new PushButton("Test Connection");
testConnectionButton.click();
new WaitUntil(new ShellIsAvailable("Success"));
new OkButton().click();
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project jbosstools-openshift by jbosstools.
the class HandleCustomTemplateTest method assertTemplateIsUsableInApplicationWizard.
private void assertTemplateIsUsableInApplicationWizard() {
new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromExplorer();
try {
new DefaultTreeItem("helloworld-sample (instant-app) - " + DatastoreOS3.PROJECT1);
} catch (RedDeerException ex) {
fail("Template is not visible in New OpenShift application wizard although it should be.");
}
new CancelButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project jbosstools-openshift by jbosstools.
the class HandleCustomTemplateTest method createTemplateFromJson.
private void createTemplateFromJson() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject().select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.NEW_RESOURCE).select();
new DefaultShell(OpenShiftLabel.Shell.NEW_RESOURCE);
new LabeledText(OpenShiftLabel.TextLabels.RESOURCE_LOCATION).setText(System.getProperty("user.dir") + File.separator + "resources" + File.separator + "hello-world-template.json");
new FinishButton().click();
new DefaultShell(OpenShiftLabel.Shell.CREATE_RESOURCE_SUMMARY);
assertTrue("Template is not listed in created resources summary", new DefaultTree().getAllItems().size() == 1);
new OkButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_RESOURCE));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
List<OpenShiftResource> templates = explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject().getOpenShiftResources(Resource.TEMPLATE);
assertTrue("There should be precisely 1 created template for the project.", templates.size() > 0);
String templateName = templates.get(0).getName();
assertTrue("Template name '" + templateName + "' does not match required name " + "helloworld-sample.", templateName.equals("helloworld-sample"));
}
Aggregations