use of org.eclipse.reddeer.common.exception.RedDeerException in project jbosstools-openshift by jbosstools.
the class OpenShift3ConnectionWizard method finishAndHandleCertificate.
public void finishAndHandleCertificate() {
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
try {
new DefaultShell(OpenShiftLabel.Shell.UNTRUSTED_SSL_CERTIFICATE);
new PushButton("Yes").click();
} catch (RedDeerException ex) {
fail("Aceptance of SSL certificate failed.");
}
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_CONNECTION), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.common.exception.RedDeerException in project linuxtools by eclipse.
the class LaunchDockerImageTest method deleteIfExists.
private void deleteIfExists(String configurationName) {
RunDockerImageLaunchConfiguration runImageConf = new RunDockerImageLaunchConfiguration();
try {
runImageConf.open();
runImageConf.deleteRunConfiguration(configurationName);
runImageConf.close();
} catch (RedDeerException e) {
// catched intentionally
}
}
use of org.eclipse.reddeer.common.exception.RedDeerException 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.common.exception.RedDeerException in project jbosstools-openshift by jbosstools.
the class EditResourcesTest method testIncorrectResourceContent.
@Test
public void testIncorrectResourceContent() {
TextEditor editor = getBuildConfigTextEditor();
String text = editor.getText();
if (buildConfig == null) {
buildConfig = text;
}
editor.setText(text.replace("\"namespace\" : \"" + DatastoreOS3.PROJECT1 + "\"", "\"namespace\" : \"" + DatastoreOS3.PROJECT1 + "\"wtf"));
try {
editor.save();
} catch (CoreLayerException ex) {
// ok
}
new WaitWhile(new JobIsRunning(), TimePeriod.DEFAULT, false);
assertTrue("Editor should be dirty, it should not be able to save incorrect content", editor.isDirty());
try {
new DefaultShell("Problem Occurred");
new OkButton().click();
} catch (RedDeerException ex) {
// sometimes it occures, sometimes not
}
}
use of org.eclipse.reddeer.common.exception.RedDeerException in project jbosstools-openshift by jbosstools.
the class EditResourcesTest method testCanEditResource.
@Test
public void testCanEditResource() {
getBuildConfig().select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.EDIT).select();
try {
new TextEditor(new WithTextMatcher("*.eap-app.json"));
// pass
} catch (RedDeerException ex) {
fail("Text editor to modify build config resource has not been opened.");
}
}
Aggregations