Package org.jenkinsci.test.acceptance.po
Class Jenkins
- All Implemented Interfaces:
CapybaraPortingLayer
,Container
Top-level object that acts as an entry point to various systems.
This is also the only page object that can be injected since there's always one that points to THE Jenkins instance under test.
- 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.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Why would you call a method that always returns true?createLogger
(String name, Map<String, Level> levels) void
generateSupportBundle
(SupportBundleRequest supportBundleRequest) Access global configuration page.Get user currently logged in.getJobs()
Returns the jobs in this container.getName()
Access the plugin manager page object<T extends PageObject>
TgetPluginPage
(Class<T> type) hudson.util.VersionNumber
Get the version of Jenkins under test.getViews()
Returns the views in this container.login()
Visit login page.void
logout()
Visit logout URL.void
restart()
void
waitForLoad
(int seconds) void
Wait for Jenkins to become up and runningMethods inherited from class org.jenkinsci.test.acceptance.po.Node
getBuildHistory, isTemporarillyOffline, runScript, runScript, setExecutors, setLabels, setRemoteFs
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, getFormName, getSubmitButtonText, save
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, getContext, 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
-
Field Details
-
jobs
-
views
-
slaves
-
-
Constructor Details
-
Jenkins
-
-
Method Details
-
getJenkins
- Overrides:
getJenkins
in classPageObject
-
getVersion
public hudson.util.VersionNumber getVersion()Get the version of Jenkins under test. -
waitForStarted
public void waitForStarted()Wait for Jenkins to become up and running -
getConfigPage
Access global configuration page. -
login
Visit login page. -
logout
public void logout()Visit logout URL. -
getCurrentUser
Get user currently logged in. -
getUser
-
getPluginManager
Access the plugin manager page object -
canRestart
Deprecated.Why would you call a method that always returns true?This method always return true. -
restart
public void restart() -
waitForLoad
public void waitForLoad(int seconds) -
getLogger
-
createLogger
-
getPlugin
-
getPluginPage
-
getName
-
getJobs
Description copied from interface:Container
Returns the jobs in this container. -
getViews
Description copied from interface:Container
Returns the views in this container. -
generateSupportBundle
-