trait MixedFixtures extends TestSuiteMixin with UnitFixture
- Alphabetic
- By Inheritance
- MixedFixtures
- UnitFixture
- TestSuiteMixin
- SuiteMixin
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class App extends (MixedFixtures.this)#NoArgHelper
NoArg
subclass that provides anApplication
fixture. - abstract class Chrome extends (MixedFixtures.this)#NoArgHelper with WebBrowser with ChromeFactory
NoArg
subclass that provides a fixture composed of anApplication
, runningTestServer
, and SeleniumChromeDriver
. - abstract class Firefox extends (MixedFixtures.this)#NoArgHelper with WebBrowser with FirefoxFactory
NoArg
subclass that provides a fixture composed of aApplication
, runningTestServer
, and SeleniumFirefoxDriver
. - type FixtureParam = Unit
- Definition Classes
- UnitFixture
- abstract class HtmlUnit extends (MixedFixtures.this)#NoArgHelper with WebBrowser with HtmlUnitFactory
NoArg
subclass that provides a fixture composed of anApplication
, runningTestServer
, and SeleniumHtmlUnitDriver
. - abstract class InternetExplorer extends (MixedFixtures.this)#NoArgHelper with WebBrowser with InternetExplorerFactory
NoArg
subclass that provides a fixture composed of anApplication
, runningTestServer
, and SeleniumInternetExplorerDriver
. - abstract class NoArgHelper extends NoArg
- abstract class Safari extends (MixedFixtures.this)#NoArgHelper with WebBrowser with SafariFactory
NoArg
subclass that provides a fixture composed of anApplication
, runningTestServer
, and SeleniumSafariDriver
. - abstract class Server extends (MixedFixtures.this)#NoArgHelper
NoArg
subclass that provides a fixture composed of aApplication
and runningTestServer
.
Abstract Value Members
- abstract def expectedTestCount(filter: Filter): Int
- Definition Classes
- SuiteMixin
- abstract def nestedSuites: IndexedSeq[Suite]
- Definition Classes
- SuiteMixin
- abstract def rerunner: Option[String]
- Definition Classes
- SuiteMixin
- abstract def run(testName: Option[String], args: Args): Status
- Definition Classes
- SuiteMixin
- abstract def suiteId: String
- Definition Classes
- SuiteMixin
- abstract def suiteName: String
- Definition Classes
- SuiteMixin
- abstract def tags: Map[String, Set[String]]
- Definition Classes
- SuiteMixin
- abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
- Definition Classes
- SuiteMixin
- abstract def testNames: Set[String]
- Definition Classes
- SuiteMixin
- abstract val styleName: String
- Definition Classes
- SuiteMixin
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.
Concrete Value Members
- def withFixture(test: (MixedFixtures.this)#OneArgTest): Outcome
- Definition Classes
- UnitFixture
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: