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
FieldsFields inherited from class org.jenkinsci.test.acceptance.po.PageObject
jsonParser, urlFields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, timeFields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Why would you call a method that always returns true?createLogger(String name, Map<String, Level> levels) voidgenerateSupportBundle(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.VersionNumberGet the version of Jenkins under test.getViews()Returns the views in this container.login()Visit login page.voidlogout()Visit logout URL.voidrestart()voidwaitForLoad(int seconds) voidWait for Jenkins to become up and runningMethods inherited from class org.jenkinsci.test.acceptance.po.Node
getBuildHistory, isTemporarillyOffline, runScript, runScript, setExecutors, setLabels, setRemoteFsMethods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, equals, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinks, hashCodeMethods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage, getFormName, saveMethods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, ensureOpen, getContext, open, toString, url, url, visitMethods 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, runThenHandleInputDialog, runThenHandleUserPrompt, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Field Details
-
jobs
-
views
-
slaves
-
-
Constructor Details
-
Jenkins
-
-
Method Details
-
getJenkins
- Overrides:
getJenkinsin 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:ContainerReturns the jobs in this container. -
getViews
Description copied from interface:ContainerReturns the views in this container. -
generateSupportBundle
-