Package org.jenkinsci.test.acceptance.po
Class ListView
-
- All Implemented Interfaces:
CapybaraPortingLayer
public class ListView extends View
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
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.View
includeRegex, jobs
-
Fields inherited from class org.jenkinsci.test.acceptance.po.PageObject
jsonParser, url
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ListViewColumn>
TaddColumn(Class<T> type)
Adds a column on the dashboard.void
addJob(Job job)
Explicitly add a job to the view.static <T extends ListViewColumn>
TcreateWithColumn(Container owner, Class<T> columnClass)
Creates a new list view with the specified column.<T extends ListViewColumn>
TgetColumn(Class<T> type)
void
scheduleJob(String name)
void
scheduleJob(String name, Map<String,Object> params)
-
Methods inherited from class org.jenkinsci.test.acceptance.po.View
build, checkRecurseIntoFolders, containsColumnHeader, containsColumnHeaderTooltip, containsImage, containsJob, containsLinkWithTooltip, containsSvgWithText, delete, getBuildHistory, getFormName, getSubmitButtonText, matchAllJobs, matchJobs, save, setDescription
-
Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, equals, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinks, hashCode
-
Methods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, getContext, getJenkins, open, toString, url, url, visit
-
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
-
-
-
-
Constructor Detail
-
ListView
public ListView(com.google.inject.Injector injector, URL url)
-
-
Method Detail
-
createWithColumn
public static <T extends ListViewColumn> T createWithColumn(Container owner, Class<T> columnClass)
Creates a new list view with the specified column.- Type Parameters:
T
- the type of the column- Parameters:
owner
- owner of the list view (jenkins, folder, etc.)columnClass
- the class of the column to add- Returns:
- the created column
-
addColumn
public <T extends ListViewColumn> T addColumn(Class<T> type)
Adds a column on the dashboard.- Type Parameters:
T
- The type of the new dashboard column.- Parameters:
type
- The class object of the type of the new dashboard column.- Returns:
- The new dashboard column.
-
getColumn
public <T extends ListViewColumn> T getColumn(Class<T> type)
- Returns:
- the column to the corresponding type
-
addJob
public void addJob(Job job)
Explicitly add a job to the view.
-
scheduleJob
public void scheduleJob(String name)
-
-