Search in sources :

Example 11 with NewOpenShift3ApplicationWizard

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

the class CreateApplicationFromTemplateTest method createApplicationFromLocalFileSystemTemplate.

@Test
public void createApplicationFromLocalFileSystemTemplate() {
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromExplorer(DatastoreOS3.PROJECT1_DISPLAYED_NAME);
    new DefaultTabItem(OpenShiftLabel.TextLabels.CUSTOM_TEMPLATE).activate();
    new LabeledText(OpenShiftLabel.TextLabels.SELECT_LOCAL_TEMPLATE).setText(TESTS_PROJECT_LOCATION + File.separator + "eap64-basic-s2i.json");
    // 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 12 with NewOpenShift3ApplicationWizard

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

the class OpenNewApplicationWizardTest method testOpenNewApplicationWizardViaCentral.

@Test
public void testOpenNewApplicationWizardViaCentral() {
    Assume.assumeTrue(centralIsAvailable());
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromCentral();
    closeWizard();
}
Also used : NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) Test(org.junit.Test)

Example 13 with NewOpenShift3ApplicationWizard

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

the class OpenNewApplicationWizardTest method testOpenNewApplicationWizardViaShellMenu.

@Test
public void testOpenNewApplicationWizardViaShellMenu() {
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromShellMenu();
    closeWizard();
}
Also used : NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) Test(org.junit.Test)

Example 14 with NewOpenShift3ApplicationWizard

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

the class NewApplicationWizardHandlingTest method openNewApplicationWizard.

@Before
public void openNewApplicationWizard() {
    OpenShift3NativeProjectUtils.getOrCreateProject(DatastoreOS3.PROJECT1, DatastoreOS3.PROJECT1_DISPLAYED_NAME, StringUtils.EMPTY, connectionReq.getConnection());
    OpenShift3NativeProjectUtils.getOrCreateProject(DatastoreOS3.PROJECT2, StringUtils.EMPTY, StringUtils.EMPTY, connectionReq.getConnection());
    new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromExplorer();
}
Also used : NewOpenShift3ApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.v3.NewOpenShift3ApplicationWizard) Before(org.junit.Before)

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