Package org.jenkinsci.test.acceptance.po
Class Build
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
MatrixBuild,MatrixRun,MavenBuild,MavenModuleBuild
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested 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 TypeMethodDescription<T extends Build>
T"Casts" this object into a subtype by creating the specified typevoiddelete()booleangetArtifact(String path) getName()Returns the human-readable name of this build.getNode()intinthashCode()booleanbooleanChecks if the build is in progress, that is the build has started and not yet completed.booleanbooleanReturns if the current build is unstable.voidkeepForever(boolean keep) voidshouldBe(Build.Result result) shouldContainsConsoleOutput(String fragment) Deprecated.voidDoes this object exist?shouldNotContainsConsoleOutput(String fragment) Deprecated.Use @linkMatchers.not(org.hamcrest.Matcher<T>)(Matchers.containsRegexp(java.lang.String)) instead.voidvoidstop()Stops the build if it's in progress.toString()waitUntilFinished(int timeout) waitUntilStarted(int timeout) Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinksMethods 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, 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
-
job
-
-
Constructor Details
-
Build
-
Build
-
Build
-
-
Method Details
-
as
"Casts" this object into a subtype by creating the specified type -
delete
public void delete() -
waitUntilStarted
-
waitUntilStarted
-
hasStarted
public boolean hasStarted() -
waitUntilFinished
-
waitUntilFinished
-
isInProgress
public boolean isInProgress()Checks if the build is in progress, that is the build has started and not yet completed. -
getNumber
public int getNumber() -
getConsoleUrl
-
getConsoleTextUrl
-
getStatusUrl
-
openStatusPage
public void openStatusPage() -
getConsole
-
shouldContainsConsoleOutput
Deprecated.UseMatchers.containsRegexp(java.lang.String)instead. -
shouldNotContainsConsoleOutput
Deprecated.Use @linkMatchers.not(org.hamcrest.Matcher<T>)(Matchers.containsRegexp(java.lang.String)) instead. -
isSuccess
public boolean isSuccess() -
isUnstable
public boolean isUnstable()Returns if the current build is unstable. -
getResult
-
getArtifact
-
getArtifacts
-
shouldSucceed
-
shouldFail
-
shouldAbort
-
shouldBeUnstable
-
shouldBe
-
getNode
-
shouldExist
public void shouldExist()Does this object exist? -
shouldNotExist
public void shouldNotExist() -
getChanges
-
keepForever
public void keepForever(boolean keep) -
toString
- Overrides:
toStringin classPageObject
-
getName
Returns the human-readable name of this build.- Returns:
- the name
-
getDisplayName
-
stop
public void stop()Stops the build if it's in progress. -
equals
- Overrides:
equalsin classContainerPageObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classContainerPageObject
-
Matchers.containsRegexp(java.lang.String)instead.