public class FluentTestRunnerAdapter extends FluentAdapter
Extends this class to provide FluentLenium support to your Test class.
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode| Constructor and Description |
|---|
FluentTestRunnerAdapter()
Creates a new test runner adapter.
|
FluentTestRunnerAdapter(FluentControlContainer driverContainer)
Creates a test runner adapter, with a custom driver container.
|
FluentTestRunnerAdapter(FluentControlContainer driverContainer,
java.lang.Class clazz,
SharedMutator sharedMutator)
Creates a test runner adapter, with a customer driver container and a customer shared mutator.
|
FluentTestRunnerAdapter(FluentControlContainer driverContainer,
SharedMutator sharedMutator)
Creates a test runner adapter, with a customer driver container and a customer shared mutator.
|
FluentTestRunnerAdapter(SharedMutator sharedMutator)
Creates a test runner adapter, with a custom shared mutator.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass(java.lang.Class<?> testClass)
Invoked when a test class has finished (whatever the success of failing status)
|
protected void |
failed()
Invoked when a test method has failed (before finished)
|
protected void |
failed(java.lang.Class<?> testClass)
Invoked when a test method has failed (before finished)
|
protected void |
failed(java.lang.Class<?> testClass,
java.lang.String testName)
Invoked when a test method has failed (before finished)
|
protected void |
failed(java.lang.String testName)
Invoked when a test method has failed (before finished)
|
protected void |
failed(java.lang.Throwable e,
java.lang.Class<?> testClass,
java.lang.String testName)
Invoked when a test method has failed (before finished)
|
protected void |
finished()
Invoked when a test method has finished (whatever the success of failing status)
|
protected void |
finished(java.lang.Class<?> testClass)
Invoked when a test method has finished (whatever the success of failing status)
|
protected void |
finished(java.lang.Class<?> testClass,
java.lang.String testName)
Invoked when a test method has finished (whatever the success of failing status)
|
protected void |
finished(java.lang.String testName)
Invoked when a test method has finished (whatever the success of failing status)
|
protected SharedWebDriver |
getSharedWebDriver(SharedMutator.EffectiveParameters<?> parameters,
java.util.concurrent.ExecutorService webDriverExecutor)
Returns SharedDriver instance
|
protected void |
starting()
Invoked when a test method is starting.
|
protected void |
starting(java.lang.Class<?> testClass)
Invoked when a test method is starting.
|
protected void |
starting(java.lang.Class<?> testClass,
java.lang.String testName)
Invoked when a test method is starting.
|
protected void |
starting(java.lang.String testName)
Invoked when a test method is starting.
|
getConfiguration, getControlContainer, getDriver, initFluent, newWebDriver, releaseFluentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$, $, $, $, el, el, el, el, find, find, find, findawaitkeyboard, mouseexecuteAsyncScript, executeScriptalertcanTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshoteventsgetCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, windowcssinject, injectComponent, newInstanceasComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, isComponentClass, isComponentListClass, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentListcapabilitiesgetAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriversetAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriverpublic FluentTestRunnerAdapter()
public FluentTestRunnerAdapter(FluentControlContainer driverContainer)
driverContainer - driver containerpublic FluentTestRunnerAdapter(SharedMutator sharedMutator)
sharedMutator - shared mutator.public FluentTestRunnerAdapter(FluentControlContainer driverContainer, SharedMutator sharedMutator)
driverContainer - driver containersharedMutator - shared mutatorpublic FluentTestRunnerAdapter(FluentControlContainer driverContainer, java.lang.Class clazz, SharedMutator sharedMutator)
driverContainer - driver containerclazz - class from which FluentConfiguration annotation will be loadedsharedMutator - shared mutatorpublic static void afterClass(java.lang.Class<?> testClass)
testClass - test class to terminateprotected void starting()
protected void starting(java.lang.String testName)
testName - Test nameprotected void starting(java.lang.Class<?> testClass)
testClass - Test classprotected void starting(java.lang.Class<?> testClass,
java.lang.String testName)
testClass - Test classtestName - Test nameprotected SharedWebDriver getSharedWebDriver(SharedMutator.EffectiveParameters<?> parameters, java.util.concurrent.ExecutorService webDriverExecutor) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
parameters - driver parameterswebDriverExecutor - executor servicejava.util.concurrent.ExecutionException - execution exceptionjava.lang.InterruptedException - interrupted exceptionprotected void finished()
protected void finished(java.lang.String testName)
testName - Test nameprotected void finished(java.lang.Class<?> testClass)
testClass - Test classprotected void finished(java.lang.Class<?> testClass,
java.lang.String testName)
testClass - Test classtestName - Test nameprotected void failed()
protected void failed(java.lang.String testName)
testName - Test nameprotected void failed(java.lang.Class<?> testClass)
testClass - Test classprotected void failed(java.lang.Class<?> testClass,
java.lang.String testName)
testClass - Test classtestName - Test nameprotected void failed(java.lang.Throwable e,
java.lang.Class<?> testClass,
java.lang.String testName)
e - Throwable thrown by the failing test.testClass - Test classtestName - Test nameCopyright © 2018 FluentLenium. All Rights Reserved.