public abstract class AbstractSeleniumTestCase extends Object
Base class for all generated JUnit Selenium tests. This class is responsible for providing a Selenium WebDriver and initializing the test data provider.
Copyright 2017 (C) by Martin Ganserer
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractSeleniumTestCase() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setContext(SeleniumTestContext context)
Set the Selenium test context if it has been initialized externally (e.g.
|
void |
setUp()
Create a Selenium WebDriver and initialize the test data provider
|
void |
tearDown()
If applicable, close the driver
|
void |
test()
Run one test in order to transfer the test context to the implementation method!
|
abstract void |
test(SeleniumTestContext context)
Every implementation must override this method in order to be able to consume the test context!
|
public void setUp()
public void tearDown()
public void test()
public abstract void test(SeleniumTestContext context)
context - public static void setContext(SeleniumTestContext context)
context - Copyright © 2019. All rights reserved.