Class TestStatisticsChartPortlet
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageAreaImpl
-
- org.jenkinsci.test.acceptance.plugins.dashboard_view.AbstractDashboardViewPortlet
-
- org.jenkinsci.test.acceptance.plugins.dashboard_view.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEST_STATISTICS_CHART
ID of this Portlet in Listview.-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Constructor Summary
Constructors Constructor Description TestStatisticsChartPortlet(DashboardView parent, String path)
Constructs a new test statistics chart portlet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElement
getChart()
Gets the chart image asWebElement
.BufferedImage
getImage()
Gets the chart image asBufferedImage
.-
Methods inherited from class org.jenkinsci.test.acceptance.plugins.dashboard_view.AbstractDashboardViewPortlet
delete, getName, setName
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPage, getPath, getPath, getPath, path, self
-
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, executeScript, fillIn, find, findIfNotVisible, getElement, getPageSource, last, lastIfNotVisible, runThenConfirmAlert, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Field Detail
-
TEST_STATISTICS_CHART
public static final String TEST_STATISTICS_CHART
ID of this Portlet in Listview.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getChart
public org.openqa.selenium.WebElement getChart() throws org.openqa.selenium.NoSuchElementException
Gets the chart image asWebElement
.- 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 asBufferedImage
.- Returns:
- The chart_image-
BufferedImage
containing the statistics. - Throws:
IOException
- if the chart is not found
-
-