Package org.jenkinsci.test.acceptance.po
Class Slave
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
DumbSlave
An agent page object.
To create a new agent into a test, use SlaveController.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
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, 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 TypeMethodDescriptionvoiddelete()voiddisconnect(String message) If the agent is online, this method will disconnect for testing purpose.intgetLog()getName()booleanbooleanisOnline()voidlaunch()If the agent is offline, this method will launch it.voidDeprecated.voidIf the agent is online, this method will mark it offline for testing purpose.voidmarkOffline(String message) voidIf the agent has been marked offline, this method will bring it up againrunBuildsInOrder(Job... jobs) Waits for a slave to come online before proceeding.Methods 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, getJenkins, 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
-
Constructor Details
-
Slave
-
-
Method Details
-
getName
-
isOnline
public boolean isOnline() -
waitUntilOnline
Waits for a slave to come online before proceeding.- See Also:
-
getLog
-
isOffline
public boolean isOffline() -
getExecutorCount
public int getExecutorCount() -
runBuildsInOrder
-
markOffline
public void markOffline()If the agent is online, this method will mark it offline for testing purpose. -
markOffline
-
markOnline
public void markOnline()If the agent has been marked offline, this method will bring it up again -
disconnect
If the agent is online, this method will disconnect for testing purpose. -
delete
public void delete() -
launchSlaveAgent
Deprecated.Preferlaunch().If the agent is offline, this method will launch it. -
launch
public void launch()If the agent is offline, this method will launch it.
-
launch().