Package io.fluentlenium.adapter.testng
Class FluentTestNg
java.lang.Object
io.fluentlenium.core.FluentControlImpl
io.fluentlenium.adapter.FluentAdapter
io.fluentlenium.adapter.FluentTestRunnerAdapter
io.fluentlenium.adapter.testng.FluentTestNg
- All Implemented Interfaces:
IFluentAdapter
,TestRunnerAdapter
,Configuration
,ConfigurationMutator
,ConfigurationProperties
,InputControl
,AlertControl
,CapabilitiesControl
,ComponentInstantiator
,CssControl
,EventsControl
,FluentControl
,FluentInjectControl
,NavigationControl
,PerformanceTimingControl
,JavascriptControl
,SearchControl<FluentWebElement>
,SeleniumDriverControl
,SnapshotControl
,AwaitControl
,ChromiumControl
TestNG FluentLenium Test Runner Adapter.
Extends this class to provide FluentLenium support to your TestNG Test class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
After test class.void
afterMethod
(org.testng.ITestResult result) After test method.void
afterTest
(org.testng.ITestContext context) After test.void
beforeMethod
(Method method, org.testng.ITestContext context) Before test.Methods inherited from class io.fluentlenium.adapter.FluentTestRunnerAdapter
classDriverCleanup, failed, failed, failed, failed, failed, finished, finished, finished, finished, getClassAnnotation, getMethodAnnotation, getTestClass, getTestMethodName, starting, starting, starting, starting
Methods inherited from class io.fluentlenium.adapter.FluentAdapter
getDriver, getFluentControl
Methods inherited from class io.fluentlenium.core.FluentControlImpl
getConfiguration, getControlContainer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluentlenium.core.FluentControl
alert, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, await, canTakeScreenShot, capabilities, css, el, events, executeAsyncScript, executeScript, find, find, find, find, getAppiumDriver, getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getChromiumApi, getConfiguration, getConfigurationDefaults, getConfigurationFactory, getControlContainer, getCookie, getCookies, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriver, goTo, goTo, goToInNewTab, inject, injectComponent, isComponentClass, isComponentListClass, keyboard, mouse, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newInstance, pageSource, performanceTiming, setAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriver, switchTo, switchTo, switchTo, switchToDefault, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshot, url, window
Methods inherited from interface io.fluentlenium.adapter.IFluentAdapter
initFluent, initFluent, isFluentControlAvailable, newWebDriver, releaseFluent, setFluentControl
-
Constructor Details
-
FluentTestNg
public FluentTestNg()Creates a new test runner adapter.
-
-
Method Details
-
afterTest
@AfterTest(alwaysRun=true) public void afterTest(org.testng.ITestContext context) After test.- Parameters:
context
- test context
-
beforeMethod
@BeforeMethod(alwaysRun=true) public void beforeMethod(Method method, org.testng.ITestContext context) Before test.- Parameters:
method
- test methodcontext
- test context
-
afterMethod
@AfterMethod(alwaysRun=true) public void afterMethod(org.testng.ITestResult result) After test method.- Parameters:
result
- test result
-
afterClass
@AfterClass(alwaysRun=true) public void afterClass()After test class.
-