trait PlayRunners extends HttpVerbs

Helper functions to run tests.

Source
Helpers.scala
Linear Supertypes
HttpVerbs, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlayRunners
  2. HttpVerbs
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val DELETE: String
    Definition Classes
    HttpVerbs
  2. val FIREFOX: Class[FirefoxDriver]
  3. val GET: String
    Definition Classes
    HttpVerbs
  4. val HEAD: String
    Definition Classes
    HttpVerbs
  5. val HTMLUNIT: Class[HtmlUnitDriver]
  6. val OPTIONS: String
    Definition Classes
    HttpVerbs
  7. val PATCH: String
    Definition Classes
    HttpVerbs
  8. val POST: String
    Definition Classes
    HttpVerbs
  9. val PUT: String
    Definition Classes
    HttpVerbs
  10. lazy val baseApplicationBuilder: GuiceApplicationBuilder

    The base builder used in the running method.

  11. def inMemoryDatabase(name: String = "default", options: Map[String, String] = Map.empty[String, String]): Map[String, String]

    Constructs a in-memory (h2) database configuration to add to an Application.

  12. def running[T](testServer: TestServer, webDriver: WebDriver)(block: (TestBrowser) => T): T

    Executes a block of code in a running server, with a test browser.

  13. def running[T, WEBDRIVER <: WebDriver](testServer: TestServer, webDriver: Class[WEBDRIVER])(block: (TestBrowser) => T): T

    Executes a block of code in a running server, with a test browser.

  14. def running[T](testServer: TestServer)(block: => T): T

    Executes a block of code in a running server.

  15. def running[T](builder: () => GuiceApplicationBuilder)(block: (Application) => T): T
  16. def running[T](app: Application)(block: => T): T

    Executes a block of code in a running application.

  17. def running[T]()(block: (Application) => T): T
  18. def runningWithPort[T](testServer: TestServer, webDriver: WebDriver)(block: (TestBrowser, Int) => T): T

    Executes a block of code in a running server, with a test browser and a port.

    Executes a block of code in a running server, with a test browser and a port. If available the http port will be used first, before falling back to the https port.

  19. def runningWithPort[T, WEBDRIVER <: WebDriver](testServer: TestServer, webDriver: Class[WEBDRIVER])(block: (TestBrowser, Int) => T): T

    Executes a block of code in a running server, with a test browser and a port.

  20. def runningWithPort[T](testServer: TestServer)(block: (Int) => T): T

    Executes a block of code in a running server, with a port.

    Executes a block of code in a running server, with a port. If available the http port will be used first, before falling back to the https port.

  21. def testServerAddress: String
  22. def testServerHttpsPort: Option[Int]
  23. def testServerPort: Int

    The port to use for a test server.

    The port to use for a test server. Defaults to a random port. May be configured using the system property testserver.port