Search in sources :

Example 6 with NewOpenShift3ApplicationWizard

use of org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard in project jbosstools-openshift by jbosstools.

the class OpenNewApplicationWizardTest method testOpenNewApplicationWizardViaOpenShiftExplorer.

@Test
public void testOpenNewApplicationWizardViaOpenShiftExplorer() {
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromExplorer(projectReq.getProject().getDisplayName());
    closeWizard();
}
Also used : NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) Test(org.junit.Test)

Example 7 with NewOpenShift3ApplicationWizard

use of org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard 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);
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) RedDeerException(org.eclipse.reddeer.common.exception.RedDeerException) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard)

Example 8 with NewOpenShift3ApplicationWizard

use of org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard in project jbosstools-openshift by jbosstools.

the class CreateApplicationFromTemplateTest method createApplicationFromTemplateProvidedByURL.

@Test
public void createApplicationFromTemplateProvidedByURL() {
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromExplorer(DatastoreOS3.PROJECT1_DISPLAYED_NAME);
    new DefaultTabItem(OpenShiftLabel.TextLabels.CUSTOM_TEMPLATE).activate();
    new LabeledText(OpenShiftLabel.TextLabels.SELECT_LOCAL_TEMPLATE).setText(URL);
    // TODO: Remove comment once JBIDE-24492 is resolved
    // assertTrue("Defined resource button should be enabled",
    // new PushButton(OpenShiftLabel.Button.DEFINED_RESOURCES).isEnabled());
    completeApplicationCreationAndVerify(helloworldProject);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) DefaultTabItem(org.eclipse.reddeer.swt.impl.tab.DefaultTabItem) NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) AbstractTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest) Test(org.junit.Test) TemplateParametersTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.TemplateParametersTest)

Example 9 with NewOpenShift3ApplicationWizard

use of org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard in project jbosstools-openshift by jbosstools.

the class CreateApplicationOnBuilderImageTest method validateJBIDE22704FromCentral.

@Test
public void validateJBIDE22704FromCentral() {
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromCentral();
    validateJBIDE22704();
}
Also used : NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) AbstractTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest) Test(org.junit.Test) BuilderImageApplicationWizardHandlingTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.BuilderImageApplicationWizardHandlingTest)

Example 10 with NewOpenShift3ApplicationWizard

use of org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard in project jbosstools-openshift by jbosstools.

the class CreateApplicationOnBuilderImageTest method validateJBIDE22704FromShellMenu.

@Test
public void validateJBIDE22704FromShellMenu() {
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromShellMenu();
    validateJBIDE22704();
}
Also used : NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) AbstractTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest) Test(org.junit.Test) BuilderImageApplicationWizardHandlingTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.BuilderImageApplicationWizardHandlingTest)

Aggregations

NewOpenShift3ApplicationWizard (org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard)14 Test (org.junit.Test)10 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)7 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)4 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)4 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)4 TemplateParametersTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.TemplateParametersTest)4 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)3 DefaultTabItem (org.eclipse.reddeer.swt.impl.tab.DefaultTabItem)3 BuilderImageApplicationWizardHandlingTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.BuilderImageApplicationWizardHandlingTest)3 Before (org.junit.Before)3 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)2 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)2 CancelButton (org.eclipse.reddeer.swt.impl.button.CancelButton)2 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)2 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)2 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)2 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)2 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1