Class TestStatisticsChartPortlet

All Implemented Interfaces:
CapybaraPortingLayer, Control.Owner, PageArea

public class TestStatisticsChartPortlet extends AbstractDashboardViewPortlet
The test statistics chart shipped with the dashboard view plugin.
Author:
René Zarwel
  • Field Details

    • TEST_STATISTICS_CHART

      public static final String TEST_STATISTICS_CHART
      ID of this Portlet in Listview.
      See Also:
  • Constructor Details

    • TestStatisticsChartPortlet

      public TestStatisticsChartPortlet(DashboardView parent, String path)
      Constructs a new test statistics chart portlet.
      Parameters:
      parent - Dashboard view this portlet is scoped to.
      path - Absolute path to the area.
  • Method Details

    • getChart

      public org.openqa.selenium.WebElement getChart() throws org.openqa.selenium.NoSuchElementException
      Gets the chart image as WebElement.
      Returns:
      The chart_image-WebElement containing the statistics.
      Throws:
      org.openqa.selenium.NoSuchElementException - if the chart is not found
    • getImage

      public BufferedImage getImage() throws IOException
      Gets the chart image as BufferedImage.
      Returns:
      The chart_image-BufferedImage containing the statistics.
      Throws:
      IOException - if the chart is not found