Error message to use if createNewDriver
completes abruptly with an exception.
Error message to use if createNewDriver
completes abruptly with an exception.
Create an new instance of Selenium WebDriver
.
Create an new instance of Selenium WebDriver
.
an new instance of Selenium WebDriver
An implicit instance of FakeApplication
.
An implicit instance of FakeApplication
.
The port used by the TestServer
.
The port used by the TestServer
. By default this will be set to the result return from
Helpers.testServerPort
, user can override this to provide their own port number.
Overriden to start TestServer
before running the tests, pass a FakeApplication
into the tests in
args.configMap
via "app" key, TestServer
's port number via "port" and WebDriver
instance via "webDriver" key.
Overriden to start TestServer
before running the tests, pass a FakeApplication
into the tests in
args.configMap
via "app" key, TestServer
's port number via "port" and WebDriver
instance via "webDriver" key. It then calls super.run
to execute the tests, and upon completion stops TestServer
and close the WebDriver
.
an optional name of one test to run. If None
, all relevant tests should be run.
I.e., None
acts like a wildcard that means run all relevant tests in this Suite
.
the Args
for this run
a Status
object that indicates when all tests and nested suites started by this method have completed, and whether or not a failure occurred.
An implicit instance of WebDriver
, created by calling createNewDriver
.
An implicit instance of WebDriver
, created by calling createNewDriver
.
If there is error when creating the WebDriver
, NoDriver
will be assigned
instead.
Override to cancel tests automatically when webDriver
resolve to NoDriver
Override to cancel tests automatically when webDriver
resolve to NoDriver
Trait that provides one
WebBrowser
instance per ScalaTestSuite
.It overrides ScalaTest's
Suite.run
method to start aTestServer
before test execution, and stop theTestServer
after test execution has completed. You can access theFakeApplication
inargs.configMap
using the"app"
key, the port number of theTestServer
using the"port"
key and theWebDriver
instance using"webDriver"
key. This traits also overridesSuite.withFixture
to cancel all the tests automatically if the relatedWebDriver
is not available in the running system.