This caseHolder does three key things:
- It tells the test environment to create a driver, and waits for the driver to be ready before starting the tests.
- It automatically prepends the current browser to the
name
of each test module and test sequence. - It tells the test environment to clean up the driver after each test sequence is complete.
Note that the wiring that creates and cleans up the driver assumes that your caseholder will be loaded from an
instance of fluid.test.webdriver.testEnvironment
(see below).
Option | Type | Description |
---|---|---|
browser |
{String} |
A browser supported by the WebDriver API, in lower case. |
sequenceStart |
Object |
A series of test sequence steps to execute at the beginning of each test sequence. |
sequenceEnd |
Object |
A series of test sequence steps to execute at the end of each test sequence. |
rawModules |
Object |
The raw test modules to "evolve" as outlined above. |
A Fluid IoC test environment that creates a webdriver instance when its constructFixtures
event is fired. Provides
all of the required events and listeners to work with a fluid.test.webdriver.caseHolder
instance (see above).