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 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 TypeMethodDescription<T extends Build>
T"Casts" this object into a subtype by creating the specified typevoid
delete()
boolean
getArtifact
(String path) getName()
Returns the human-readable name of this build.getNode()
int
int
hashCode()
boolean
boolean
Checks if the build is in progress, that is the build has started and not yet completed.boolean
boolean
Returns if the current build is unstable.void
keepForever
(boolean keep) void
shouldBe
(Build.Result result) shouldContainsConsoleOutput
(String fragment) Deprecated.void
Does this object exist?shouldNotContainsConsoleOutput
(String fragment) Deprecated.Use @linkMatchers.not(org.hamcrest.Matcher<T>)
(Matchers.containsRegexp(java.lang.String)
) instead.void
void
stop()
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, getNavigationLinks
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, 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
-
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:
toString
in 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:
equals
in classContainerPageObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContainerPageObject
-
Matchers.containsRegexp(java.lang.String)
instead.