@Test
  public void testContainerPropertiesTab() {
    DockerImagesTab imageTab = new DockerImagesTab();
    imageTab.activate();
    imageTab.refresh();
    new WaitWhile(new JobIsRunning());
    imageTab.runImage(this.imageName);
    RunADockerImagePageOneWizard firstPage = new RunADockerImagePageOneWizard();
    firstPage.setName(this.containerName);
    firstPage.finish();
    new WaitWhile(new JobIsRunning());
    DockerContainersTab containerTab = new DockerContainersTab();
    containerTab.activate();
    containerTab.refresh();
    new WaitWhile(new JobIsRunning(), TimePeriod.NORMAL);
    containerTab.select(containerName);

    // get values from Properties view
    PropertiesView propertiesView = new PropertiesView();
    propertiesView.open();
    try {
      propertiesView.selectTab("Info");
    } catch (SWTLayerException ex) {
      fail("Properties tab Info is not opened, is image selected in Images Tab?");
    }
  }
 @Test
 public void testImagePropertiesTab() {
   DockerImagesTab imageTab = new DockerImagesTab();
   imageTab.activate();
   imageTab.refresh();
   imageTab.selectImage(imageName);
   PropertiesView propertiesView = new PropertiesView();
   propertiesView.open();
   try {
     propertiesView.selectTab("Info");
   } catch (SWTLayerException ex) {
     fail("Properties tab Info is not opened, is image selected in Images Tab?");
   }
 }
  @Test
  public void testImageTab() {
    pullImage(this.imageName);
    DockerImagesTab imageTab = new DockerImagesTab();
    imageTab.activate();
    imageTab.refresh();
    new WaitWhile(new JobIsRunning(), TimePeriod.NORMAL);

    String idFromTable = "";
    String repoTagsFromTable = "";
    String createdFromTable = "";
    String sizeFromTable = "";

    for (TableItem item : imageTab.getTableItems()) {
      if (item.getText(1).contains(imageName)) {
        idFromTable = item.getText();
        repoTagsFromTable = item.getText(1);
        createdFromTable = item.getText(2);
        sizeFromTable = item.getText(3).replaceAll(".", "").replaceAll(" MB", "");
        item.click();
      }
    }
    idFromTable = idFromTable.replace("sha256:", "");

    PropertiesView propertiesView = new PropertiesView();
    propertiesView.open();
    propertiesView.selectTab("Info");
    String idProp = propertiesView.getProperty("Id").getPropertyValue();
    String repoTagsProp = propertiesView.getProperty("RepoTags").getPropertyValue();
    String createdProp = propertiesView.getProperty("Created").getPropertyValue();
    String sizeProp = propertiesView.getProperty("VirtualSize").getPropertyValue();

    assertTrue("Id in table and in Properties do not match!", idProp.contains(idFromTable));
    assertTrue(
        "RepoTags in table and in Properties do not match!",
        repoTagsProp.equals(repoTagsFromTable));
    assertTrue(
        "Created in table and in Properties do not match!", createdProp.equals(createdFromTable));
    assertTrue("Size in table and in Properties do not match!", sizeProp.startsWith(sizeFromTable));
  }