Package org.jenkinsci.test.acceptance.po
Class Slave
-
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
DumbSlave
public class Slave extends Node
An agent page object.To create a new agent into a test, use
SlaveController
.- Author:
- Kohsuke Kawaguchi
- See Also:
Jenkins.slaves
-
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
delete()
void
disconnect(String message)
If the agent is online, this method will disconnect for testing purpose.int
getExecutorCount()
String
getLog()
String
getName()
boolean
isOffline()
boolean
isOnline()
void
launch()
If the agent is offline, this method will launch it.void
launchSlaveAgent()
Deprecated.Preferlaunch()
.void
markOffline()
If the agent is online, this method will mark it offline for testing purpose.void
markOffline(String message)
void
markOnline()
If the agent has been marked offline, this method will bring it up againstatic Matcher<Slave>
runBuildsInOrder(Job... jobs)
Slave
waitUntilOnline()
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, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Method Detail
-
isOnline
public boolean isOnline()
-
waitUntilOnline
public Slave waitUntilOnline()
Waits for a slave to come online before proceeding.- See Also:
isOnline()
-
getLog
public String getLog()
-
isOffline
public boolean isOffline()
-
getExecutorCount
public int getExecutorCount()
-
markOffline
public void markOffline()
If the agent is online, this method will mark it offline for testing purpose.
-
markOffline
public void markOffline(String message)
-
markOnline
public void markOnline()
If the agent has been marked offline, this method will bring it up again
-
disconnect
public void disconnect(String message)
If the agent is online, this method will disconnect for testing purpose.
-
delete
public void delete()
-
launchSlaveAgent
@Deprecated public void 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.
-
-