NoArg
subclass that provides an Application
fixture.
NoArg
subclass that provides a fixture composed of an Application
, running TestServer
, and
Selenium ChromeDriver
.
NoArg
subclass that provides a fixture composed of a Application
, running TestServer
, and
Selenium FirefoxDriver
.
NoArg
subclass that provides a fixture composed of an Application
, running TestServer
, and
Selenium HtmlUnitDriver
.
NoArg
subclass that provides a fixture composed of an Application
, running TestServer
, and
Selenium InternetExplorerDriver
.
NoArg
subclass that provides a fixture composed of an Application
, running TestServer
, and
Selenium SafariDriver
.
NoArg
subclass that provides a fixture composed of a Application
and running TestServer
.
Trait that helps you provide different fixtures to different tests: a
Application
, aTestServer
, or one of the SeleniumWebDrivers
s.Trait
MixedFixtures
can be mixed into anyfixture.Suite
. For convenience it is mixed into MixedPlaySpec. In afixture.Suite
, tests can take a no-arg function.MixedFixtures
provides several no-arg function classes (classes extendingFunction0
) that can be used to provide different fixtures for different tests.If a test needs a
Application
, use theApp
function, like this:If a test needs an
Application
and runningTestServer
, use theServer
function, like this:If a test needs an
Application
, runningTestServer
, and Selenium driver, use one of functionsChrome
,Firefox
,HtmlUnit
,InternetExplorer
, orSafari
. If the chosen Selenium driver is unavailable on the host platform, the test will be automatically canceled. Here's an example that uses theSafari
function:Here's a complete example: