Looks in args.configMap
for a key named "org.scalatestplus.play.webDriver" whose value is a WebDriver
,
and if it exists, sets the WebDriver
as
the value that will be returned from the webDriver
method, then calls
super.run
.
Looks in args.configMap
for a key named "org.scalatestplus.play.webDriver" whose value is a WebDriver
,
and if it exists, sets the WebDriver
as
the value that will be returned from the webDriver
method, then calls
super.run
.
If no key matches "org.scalatestplus.play.webDriver" in args.configMap
,
or the associated value is not a WebDriver
, throws IllegalArgumentException
.
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.
java.lang.IllegalArgumentException
if the WebDriver
does not appear in args.configMap
under the expected key
The "configured" Selenium WebDriver
, passed into run
via the ConfigMap
.
The "configured" Selenium WebDriver
, passed into run
via the ConfigMap
.
the configured port number
Trait that provides a configured
Application
, server port number, and SeleniumWebDriver
to the suite into which it is mixed.The purpose of this trait is to allow nested suites of an enclosing suite that extends OneBrowserPerSuite to make use of the
WebDriver
provided byOneBrowserPerSuite
. TraitOneBrowserPerSuite
will ensure theWebDriver
is placed in theConfigMap
under the keyorg.scalatestplus.play.webDriver
before nested suites are invoked. This information represents the "configured browser" that is passed from the enclosing suite to the nested suites. TraitConfiguredBrowser
extracts this information from from theConfigMap
and makes theWebDriver
available implicitly from thewebDriver
method.This trait's self-type, ServerProvider, will ensure a
TestServer
andApplication
are available to each test. The self-type will require that you mix in either GuiceOneServerPerSuite, GuiceOneServerPerTest, ConfiguredServer before you mix in this trait. Your choice among these threeServerProvider
s will determine the extent to which one or moreTestServer
s are shared by multiple tests.To prevent discovery of nested suites you can annotate them with
@DoNotDiscover
. Here's an example taken from the documentation for trait OneBrowserPerSuite: