Search in sources :

Example 16 with PropertySheet

use of org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet in project linuxtools by eclipse.

the class PropertiesViewTest method testImagePropertiesTab.

@Test
public void testImagePropertiesTab() {
    DockerImagesTab imagesTab = openDockerImagesTab();
    imagesTab.selectImage(IMAGE_NAME);
    // DockerExplorerView de = new DockerExplorerView();
    // de.open();
    // de.getDockerConnectionByName(getConnection().getName()).getImage(IMAGE_NAME).select();
    PropertySheet propertiesView = new PropertySheet();
    propertiesView.open();
    propertiesView.selectTab("Info");
}
Also used : PropertySheet(org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet) DockerImagesTab(org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab) Test(org.junit.Test) AbstractImageBotTest(org.eclipse.linuxtools.docker.integration.tests.image.AbstractImageBotTest)

Example 17 with PropertySheet

use of org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet in project jbosstools-openshift by jbosstools.

the class ImportApplicationWizardGitTest method getOriginURL.

private String getOriginURL() {
    project.select();
    project.openProperties();
    project.selectTabbedProperty("Builds");
    PropertySheet propertiesView = new PropertySheet();
    new DefaultTable().getItem(0).select();
    String originURL = propertiesView.getProperty("Misc", "Source Repo").getPropertyValue();
    return originURL;
}
Also used : PropertySheet(org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet) DefaultTable(org.eclipse.reddeer.swt.impl.table.DefaultTable)

Example 18 with PropertySheet

use of org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet in project jbosstools-openshift by jbosstools.

the class ConnectionPropertiesTest method testConnectionProperties.

@Test
public void testConnectionProperties() {
    OpenShiftExplorerView explorer = new OpenShiftExplorerView();
    explorer.open();
    OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
    connection.select();
    new ContextMenuItem(OpenShiftLabel.ContextMenu.PROPERTIES).select();
    PropertySheet propertiesView = new PropertySheet();
    propertiesView.activate();
    assertEquals("Property host is not valid. Was '" + propertiesView.getProperty(PROPERTY_HOST).getPropertyValue() + "' but was expected '" + DatastoreOS3.SERVER + "'", DatastoreOS3.SERVER, propertiesView.getProperty(PROPERTY_HOST).getPropertyValue());
    if (DatastoreOS3.AUTH_METHOD.equals(AuthenticationMethod.BASIC)) {
        assertEquals("Property user name is not valid. Was '" + propertiesView.getProperty(PROPERTY_USERNAME).getPropertyValue() + "' but was expected '" + DatastoreOS3.USERNAME + "'", DatastoreOS3.USERNAME, propertiesView.getProperty(PROPERTY_USERNAME).getPropertyValue());
    } else {
        assertEquals("Property user name is not valid. Was '" + propertiesView.getProperty(PROPERTY_USERNAME).getPropertyValue() + "' but was expected '" + connectionReq.getConnection().getUsername() + "'", connectionReq.getConnection().getUsername(), propertiesView.getProperty(PROPERTY_USERNAME).getPropertyValue());
    }
}
Also used : ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) PropertySheet(org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet) OpenShiftExplorerView(org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView) OpenShift3Connection(org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection) AbstractTest(org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest) Test(org.junit.Test)

Aggregations

PropertySheet (org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet)18 Test (org.junit.Test)9 AbstractImageBotTest (org.eclipse.linuxtools.docker.integration.tests.image.AbstractImageBotTest)8 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)8 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)8 DockerImagesTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab)7 ContainerIsDeployedCondition (org.eclipse.linuxtools.docker.reddeer.condition.ContainerIsDeployedCondition)5 ImageRunSelectionPage (org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageRunSelectionPage)5 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)5 DockerContainersTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerContainersTab)3 TableItem (org.eclipse.reddeer.swt.api.TableItem)2 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)2 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)2 OpenShift3Connection (org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection)2 ImageRunResourceVolumesVariablesPage (org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageRunResourceVolumesVariablesPage)1 DefaultTable (org.eclipse.reddeer.swt.impl.table.DefaultTable)1 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)1 Before (org.junit.Before)1