Search in sources :

Example 16 with DefaultText

use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-openshift by jbosstools.

the class CreateNewConnectionTest method invalidRegistryURLShouldReportErrorMessage.

@Test
@RunIf(conditionClass = ConnectionCredentialsExists.class)
public void invalidRegistryURLShouldReportErrorMessage() {
    openConnectionWizardAndSetDefaultServer();
    new LabeledCombo(OpenShiftLabel.TextLabels.PROTOCOL).setSelection(AuthenticationMethod.BASIC.toString());
    new LabeledText(OpenShiftLabel.TextLabels.USERNAME).setText(DatastoreOS3.USERNAME);
    new LabeledText(OpenShiftLabel.TextLabels.PASSWORD).setText(DatastoreOS3.PASSWORD);
    new PushButton(OpenShiftLabel.Button.ADVANCED_OPEN).click();
    new LabeledText(OpenShiftLabel.TextLabels.IMAGE_REGISTRY_URL).setText("invalidURL");
    new WaitUntil(new ControlIsEnabled(new CancelButton()), TimePeriod.DEFAULT);
    new WaitUntil(new ControlIsEnabled(new DefaultText(" Please provide a valid image registry (HTTP/S) URL.")), TimePeriod.DEFAULT);
    new CancelButton().click();
}
Also used : DefaultText(org.eclipse.reddeer.swt.impl.text.DefaultText) LabeledCombo(org.eclipse.reddeer.swt.impl.combo.LabeledCombo) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) ControlIsEnabled(org.eclipse.reddeer.swt.condition.ControlIsEnabled) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) RunIf(org.eclipse.reddeer.junit.execution.annotation.RunIf) AbstractTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest) Test(org.junit.Test)

Example 17 with DefaultText

use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-hibernate by jbosstools.

the class EditConfigurationMainPage method setConfigurationFile.

/**
 * Set configuration file for Hibernate Console Configuration
 * @param file given file path
 */
public void setConfigurationFile(String file) {
    DefaultGroup g = new DefaultGroup("Configuration file:");
    new DefaultText(g, 0).setText(file);
}
Also used : DefaultText(org.eclipse.reddeer.swt.impl.text.DefaultText) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup)

Aggregations

DefaultText (org.eclipse.reddeer.swt.impl.text.DefaultText)17 Test (org.junit.Test)9 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)6 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)5 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)5 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)5 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)5 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)5 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)4 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)4 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)3 DefaultTable (org.eclipse.reddeer.swt.impl.table.DefaultTable)3 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)2 DefaultGroup (org.eclipse.reddeer.swt.impl.group.DefaultGroup)2 DefaultTabItem (org.eclipse.reddeer.swt.impl.tab.DefaultTabItem)2 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)1 RunIf (org.eclipse.reddeer.junit.execution.annotation.RunIf)1 Combo (org.eclipse.reddeer.swt.api.Combo)1