Class AbstractJUnitTest
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.junit.AbstractJUnitTest
-
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
AbstractCredentialsTest
,AbstractPipelineTest
public class AbstractJUnitTest extends CapybaraPortingLayerImpl
Convenience base class to derive your plain-old JUnit tests from.It provides a number of convenience methods, and sets up the correct test runner.
- 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 Modifier and Type Field Description org.openqa.selenium.WebDriver
driver
This field receives a valid web driver object you can use to talk to Jenkins.Jenkins
jenkins
Jenkins under test.JenkinsAcceptanceTestRule
rules
SupportBundle
supportBundle
-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Constructor Summary
Constructors Constructor Description AbstractJUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
findAvailablePort()
void
injectSpec()
protected void
interrupt()
-
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
-
-
-
-
Field Detail
-
rules
public JenkinsAcceptanceTestRule rules
-
jenkins
@Inject public Jenkins jenkins
Jenkins under test.
-
supportBundle
public SupportBundle supportBundle
-
driver
@Inject public org.openqa.selenium.WebDriver driver
This field receives a valid web driver object you can use to talk to Jenkins.
-
-