Class BuildStatisticsPortlet
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.BuildStatisticsPortlet
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
The basic build statistics portlet shipped with the dashboard view plugin.
- Author:
- Rene Zarwel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Different types of jobs and related default row number in statistics table.Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
Field Summary
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
ConstructorDescriptionBuildStatisticsPortlet
(DashboardView parent, String path) Constructs a new build statistics portlet. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of builds of a specificBuildStatisticsPortlet.JobType
.Gets the percentage of builds of a specificBuildStatisticsPortlet.JobType
.org.openqa.selenium.WebElement
getTable()
Gets the build statistics table asWebElement
.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 Details
-
PORTLET_NAME
Default name of this Portlet.- See Also:
-
-
Constructor Details
-
BuildStatisticsPortlet
Constructs a new build statistics portlet.- Parameters:
parent
- Parent dashboard view this portlet is scoped to.path
- Absolute path to the area.
-
-
Method Details
-
getTable
public org.openqa.selenium.WebElement getTable()Gets the build statistics table asWebElement
.- Returns:
- build statistics table
-
getNumberOfBuilds
Gets the number of builds of a specificBuildStatisticsPortlet.JobType
.- Parameters:
type
- type of job- Returns:
- number of builds
-
getPercentageOfBuilds
Gets the percentage of builds of a specificBuildStatisticsPortlet.JobType
.- Parameters:
type
- Type of Job- Returns:
- percentage of builds
-