Package org.jenkinsci.test.acceptance.po
Class Node
-
- All Implemented Interfaces:
CapybaraPortingLayer
public abstract class Node extends ContainerPageObject
Common base for Jenkins and Slave.- Author:
- ogondza
-
-
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 Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BuildHistory
getBuildHistory()
abstract String
getName()
boolean
isTemporarillyOffline()
String
runScript(String script, int timeoutSeconds, Object... args)
Run groovy string in groovy console.String
runScript(String script, Object... args)
Run groovy string in groovy console.void
setExecutors(int n)
void
setLabels(String l)
void
setRemoteFs(String s)
-
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
-
-
-
-
Method Detail
-
getName
public abstract String getName()
-
setExecutors
public void setExecutors(int n)
-
setRemoteFs
public void setRemoteFs(String s)
-
setLabels
public void setLabels(String l)
-
runScript
public String runScript(String script, Object... args)
Run groovy string in groovy console. Defaults to a 30 second timeout.- Parameters:
script
- Script text to run.args
- Arguments to String#format in the script.- Returns:
- String output of the script or null if there is none.
-
runScript
public String runScript(String script, int timeoutSeconds, Object... args)
Run groovy string in groovy console.- Parameters:
script
- Script text to run.args
- Arguments to String#format in the script.timeoutSeconds
- Script execution timeout in seconds- Returns:
- String output of the script or null if there is none.
- Since:
- TODO
-
getBuildHistory
public BuildHistory getBuildHistory()
-
isTemporarillyOffline
public boolean isTemporarillyOffline()
-
-