use of org.eclipse.reddeer.swt.impl.combo.LabeledCombo in project jbosstools-openshift by jbosstools.
the class ServerAdapterWizardHandlingTest method testPreselectedConnectionForNewOpenShift3ServerAdapter.
@Test
public void testPreselectedConnectionForNewOpenShift3ServerAdapter() {
openNewServerAdapterWizard();
assertTrue("There should be preselected an existing OpenShift 3 connection in new server adapter wizard.", new LabeledCombo(OpenShiftLabel.TextLabels.CONNECTION).getSelection().contains(connectionReq.getConnection().getUsername()));
}
use of org.eclipse.reddeer.swt.impl.combo.LabeledCombo in project jbosstools-openshift by jbosstools.
the class CreateNewConnectionTest method openConnectionWizardAndSetDefaultServer.
private void openConnectionWizardAndSetDefaultServer() {
OpenShiftExplorerView openShiftExplorerView = new OpenShiftExplorerView();
openShiftExplorerView.open();
openShiftExplorerView.openConnectionShell();
new DefaultShell(OpenShiftLabel.Shell.NEW_CONNECTION);
new LabeledCombo(OpenShiftLabel.TextLabels.SERVER_TYPE).setSelection(OpenShiftLabel.Others.OPENSHIFT3);
new LabeledCombo(OpenShiftLabel.TextLabels.SERVER).setText(DatastoreOS3.SERVER);
}
use of org.eclipse.reddeer.swt.impl.combo.LabeledCombo 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();
}
use of org.eclipse.reddeer.swt.impl.combo.LabeledCombo in project jbosstools-openshift by jbosstools.
the class CreateNewConnectionTest method openConnectionWizardAndSetDefaultServerOAuth.
private void openConnectionWizardAndSetDefaultServerOAuth() {
openConnectionWizardAndSetDefaultServer();
new LabeledCombo(OpenShiftLabel.TextLabels.PROTOCOL).setSelection(AuthenticationMethod.OAUTH.toString());
}
use of org.eclipse.reddeer.swt.impl.combo.LabeledCombo in project jbosstools-openshift by jbosstools.
the class ConnectionWizardHandlingTest method switchToBasic.
private void switchToBasic() {
new LabeledCombo(OpenShiftLabel.TextLabels.PROTOCOL).setSelection(AuthenticationMethod.BASIC.toString());
try {
new LabeledText(OpenShiftLabel.TextLabels.USERNAME);
new LabeledText(OpenShiftLabel.TextLabels.PASSWORD);
// pass
} catch (RedDeerException ex) {
fail("Text field for username and/or password is not present for Basic authentication protocol.");
}
}
Aggregations