public abstract class SeleniumPlus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static EmbeddedHookDriverRunner |
Runner
The Runner object providing access to the underlying Selenium Engine.
|
Constructor and Description |
---|
SeleniumPlus()
Required Default no-arg constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
AbortTest(java.lang.String reason)
Prints a detailed abort message to the log and throws a RuntimeException to abort the test run.
|
static void |
main(java.lang.String[] args)
main inherited by subclasses is required.
|
static boolean |
PrintTestCaseSummary(java.lang.String tcname)
Stop capturing test activity counts for a specific application feature or testcase if it is
still active, then print a summary report of all tests counted, passed, failed, and skipped, etc...
|
abstract void |
runTest()
Start writing tests in this required method in your subclass.
|
static boolean |
StartTestCase(java.lang.String tcname)
Start capturing test activity counts for a specific application feature or testcase.
|
static boolean |
StopTestCase(java.lang.String tcname)
Stop capturing test activity counts for a specific application feature or testcase.
|
public static EmbeddedHookDriverRunner Runner
public SeleniumPlus()
public static boolean StartTestCase(java.lang.String tcname)
tcname
- The name of the testcase to start using a Counter on.StopTestCase(String)
,
PrintTestCaseSummary(String)
public static boolean StopTestCase(java.lang.String tcname)
tcname
- The name of the testcase to stop. The name must match a counter that was
previously started.StartTestCase(String)
,
PrintTestCaseSummary(String)
public static boolean PrintTestCaseSummary(java.lang.String tcname)
tcname
- The name of the testcase to start using a Counter on. The name must match a counter
that was previously started.StartTestCase(String)
,
StopTestCase(String)
public abstract void runTest() throws java.lang.Throwable
java.lang.Throwable
public static void AbortTest(java.lang.String reason) throws java.lang.Throwable
reason
- will be prepended to the detailed abort information.java.lang.Throwable
public static void main(java.lang.String[] args)
Any subclass specific initialization should be done in the default no-arg constructor for the subclass. That Constructor will be instantiated and invoked automatically by this main startup method.
args
-