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
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
Modifier and TypeFieldDescriptionorg.openqa.selenium.WebDriver
This field receives a valid web driver object you can use to talk to Jenkins.Jenkins under test.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
-
Method Summary
Modifier and TypeMethodDescriptionint
void
protected void
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, runThenHandleInputDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Field Details
-
rules
-
jenkins
Jenkins under test. -
supportBundle
-
driver
@Inject public org.openqa.selenium.WebDriver driverThis field receives a valid web driver object you can use to talk to Jenkins.
-
-
Constructor Details
-
AbstractJUnitTest
public AbstractJUnitTest()
-
-
Method Details
-
findAvailablePort
public int findAvailablePort()- Returns:
- finds an unused, available port on the test machine
-
interrupt
protected void interrupt() -
injectSpec
public void injectSpec()
-