play.api.test
Contains test helpers.
Attributes
Members list
Type members
Classlikes
Mixin with helpers for creating ApplicationFactory objects.
Mixin with helpers for creating ApplicationFactory objects.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ApplicationFactory
Creates an Application. Usually created by a helper in ApplicationFactories.
Creates an Application. Usually created by a helper in ApplicationFactories.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ApplicationFactory.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
Attributes
- Companion
- class
- Supertypes
- Self type
Creates a server for an application with a random HTTP port bound. To change the HTTP port you can pass a testserver.port system property. The HTTPS port by default is not bound, but can be enabled by passing the testserver.httpsport system property. If it gets bound it will be using a self-signed certificate.
Creates a server for an application with a random HTTP port bound. To change the HTTP port you can pass a testserver.port system property. The HTTPS port by default is not bound, but can be enabled by passing the testserver.httpsport system property. If it gets bound it will be using a self-signed certificate.
Most logic in this class is in a protected method so that users can extend the class and override its logic.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object DefaultTestServerFactory
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helperstrait RouteInvokers
- Self type
A Request with a few extra methods that are useful for testing.
A Request with a few extra methods that are useful for testing.
Type parameters
- A
-
the body content type.
Value parameters
- request
-
The original request that this
FakeRequestwraps.
Attributes
- Companion
- object
- Supertypes
Object with helper methods for building FakeRequest values. This object uses a play.api.mvc.request.DefaultRequestFactory with default configuration to build the requests.
Object with helper methods for building FakeRequest values. This object uses a play.api.mvc.request.DefaultRequestFactory with default configuration to build the requests.
Attributes
- Companion
- class
- Supertypes
- Self type
-
FakeRequest.type
Helper methods for building FakeRequest values.
Helper methods for building FakeRequest values.
Value parameters
- requestFactory
-
Used to construct the wrapped requests.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object FakeRequest
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
- Self type
Attributes
- Supertypes
-
trait StubMessagesFactorytrait StubBodyParserFactorytrait FutureAwaitstrait RouteInvokerstrait EssentialActionCallertrait Writeablestrait ResultExtractorstrait DefaultAwaitTimeouttrait HttpProtocoltrait MimeTypestrait Statustrait HeaderNamestrait PlayRunnerstrait HttpVerbsclass Objecttrait Matchableclass AnyShow all
- Self type
-
Helpers.type
Provides a recipe for making an HTTP ServerEndpoint.
Provides a recipe for making an HTTP ServerEndpoint.
Attributes
- Supertypes
- Self type
Provides a recipe for making an HTTPS ServerEndpoint.
Provides a recipe for making an HTTPS ServerEndpoint.
Attributes
- Supertypes
- Self type
A trait declared on a class that contains an def app: Application, and can provide instances of a class. Useful in integration tests.
A trait declared on a class that contains an def app: Application, and can provide instances of a class. Useful in integration tests.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A temporary file creator with no implementation.
A temporary file creator with no implementation.
Attributes
- Supertypes
- Self type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PlayRunners.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
- Self type
Attributes
- Supertypes
- Known subtypes
-
object Helpers
- Self type
Contains information about a running TestServer. This object can be used by tests to find out about the running server, e.g. port information.
Contains information about a running TestServer. This object can be used by tests to find out about the running server, e.g. port information.
We use a separate class to avoid including mutable state, such as methods for closing the server.
Attributes
- Supertypes
A recipe for making a ServerEndpoint. Recipes are often used when describing which tests to run. The recipe can be used to start servers with the correct ServerEndpoints.
A recipe for making a ServerEndpoint. Recipes are often used when describing which tests to run. The recipe can be used to start servers with the correct ServerEndpoints.
Attributes
- See also
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class HttpServerEndpointRecipe
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ServerEndpointRecipe.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
Attributes
- Supertypes
-
trait StubMessagesFactorytrait StubBodyParserFactoryclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object Helpers
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
Value parameters
- webDriver
-
The WebDriver instance to use.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass FluentAdaptertrait IFluentAdapterclass FluentControlImpltrait FluentControltrait ChromiumControltrait Configurationtrait ConfigurationMutatortrait ConfigurationPropertiestrait PerformanceTimingControltrait CapabilitiesControltrait ComponentInstantiatortrait FluentInjectControltrait CssControltrait SeleniumDriverControltrait NavigationControltrait EventsControltrait SnapshotControltrait AlertControltrait JavascriptControltrait InputControltrait AwaitControltrait SearchControl[FluentWebElement]class Objecttrait Matchableclass AnyShow all
Helper utilities to build TestBrowsers
Helper utilities to build TestBrowsers
Attributes
- Companion
- class
- Supertypes
- Self type
-
TestBrowser.type
A test web server.
A test web server.
Value parameters
- application
-
The Application to load in this server.
- config
-
The server configuration.
- serverProvider
-
The type of server to use. If not provided, uses Play's default provider.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
TestServer.type
Creates a server for an application.
Creates a server for an application.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultTestServerFactoryobject DefaultTestServerFactory
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WebDriverFactory.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Helpers
Types
A structural type indicating there is an application.
A structural type indicating there is an application.