Search in sources :

Example 11 with NewServerWizardPage

use of org.eclipse.reddeer.eclipse.wst.server.ui.wizard.NewServerWizardPage in project jbosstools-openshift by jbosstools.

the class CDK32ServerEditorTest method setupServerWizardPage.

@Override
protected void setupServerWizardPage(NewMenuWizard dialog) {
    NewServerWizardPage page = new NewServerWizardPage(dialog);
    page.selectType(SERVER_TYPE_GROUP, CDK32_SERVER_NAME);
    page.setName(getServerAdapter());
    dialog.next();
    NewCDK32ServerWizardPage containerPage = new NewCDK32ServerWizardPage();
    containerPage.setCredentials(USERNAME, PASSWORD);
    log.info("Setting hypervisor to: " + hypervisor);
    containerPage.setHypervisor(hypervisor);
    log.info("Setting binary to " + CDK32_MINISHIFT);
    containerPage.setMinishiftBinary(CDK32_MINISHIFT);
    // here comes possibility to set profile while creating server adapter
    log.info("Setting profile to: ");
    containerPage.setMinishiftProfile("");
    new WaitWhile(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.MEDIUM, false);
}
Also used : NewCDK32ServerWizardPage(org.jboss.tools.cdk.reddeer.server.ui.wizard.NewCDK32ServerWizardPage) SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) NewServerWizardPage(org.eclipse.reddeer.eclipse.wst.server.ui.wizard.NewServerWizardPage)

Aggregations

NewServerWizardPage (org.eclipse.reddeer.eclipse.wst.server.ui.wizard.NewServerWizardPage)11 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)4 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)4 SystemJobIsRunning (org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning)4 NewCDKServerWizard (org.jboss.tools.cdk.reddeer.server.ui.wizard.NewCDKServerWizard)4 Test (org.junit.Test)4 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)3 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)3 NewCDK32ServerWizardPage (org.jboss.tools.cdk.reddeer.server.ui.wizard.NewCDK32ServerWizardPage)3 NewServerWizard (org.eclipse.reddeer.eclipse.wst.server.ui.wizard.NewServerWizard)2 NewCDK3ServerWizardPage (org.jboss.tools.cdk.reddeer.server.ui.wizard.NewCDK3ServerWizardPage)2 NewMinishiftServerWizardPage (org.jboss.tools.cdk.reddeer.server.ui.wizard.NewMinishiftServerWizardPage)2 JobIsKilled (org.eclipse.reddeer.workbench.core.condition.JobIsKilled)1 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)1