use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ComposeTest method testCompose.
@Test
public void testCompose() {
// Set up Docker Compose location
PreferenceDialog dialog = new WorkbenchPreferenceDialog();
DockerComposePreferencePage composePreference = new DockerComposePreferencePage(dialog);
dialog.open();
dialog.select(composePreference);
composePreference.setPathToDockerCompose(this.dockerComposePath);
composePreference.apply();
new PushButton("Apply and Close").click();
// Build Image
DockerImagesTab imagesTab = openDockerImagesTab();
buildImage(IMAGE_NAME, PATH_TEST_COMPOSE, imagesTab);
assertConsoleSuccess();
// Import resource folder
importProject(PATH_TEST_COMPOSE);
// Run Docker Compose
runDockerCompose(PROJECT_TEST_COMPOSE, FILE_DOCKER_COMPOSE);
// Check if application is running
WebBrowserView browserView = new WebBrowserView();
browserView.open();
// Skip browser contents check, if mockito is used
if (!mockitoIsUsed()) {
browserView.openPageURL(URL);
BrowserContentsCheck.checkBrowserForErrorPage(browserView, URL);
}
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addDataVolumeToContainer.
public void addDataVolumeToContainer(String containerPath, String containerName) {
new PushButton(0, new WithTextMatcher("Add...")).click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("Mount a data volume container").click();
new DefaultCombo("Container").setText(containerName);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addEnviromentVariable.
public void addEnviromentVariable(String name, String value) {
new PushButton(1, new WithTextMatcher("Add...")).click();
new LabeledText("Name:").setText(name);
new LabeledText("Value:").setText(value);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addLabel.
public void addLabel(String name, String value) {
new PushButton(2, new WithTextMatcher("Add...")).click();
new LabeledText("Name:").setText(name);
new LabeledText("Value:").setText(value);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageRunSelectionPage method addLinkToContainer.
public void addLinkToContainer(String containerName, String alias) {
new PushButton(1, new WithTextMatcher("Add...")).click();
new DefaultShell("Container Linking");
new LabeledCombo("Container:").setText(containerName);
new LabeledText("Alias:").setText(alias);
new OkButton().click();
}
Aggregations