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, 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 TypeMethodDescriptionvoid
delete()
void
disconnect
(String message) If the agent is online, this method will disconnect for testing purpose.int
getLog()
getName()
boolean
boolean
isOnline()
void
launch()
If the agent is offline, this method will launch it.void
Deprecated.void
If the agent is online, this method will mark it offline for testing purpose.void
markOffline
(String message) void
If 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, 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, 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 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()
.