Package

org.pageobject

scalatest

Permalink

package scalatest

Visibility
  1. Public
  2. All

Type Members

  1. trait ConfigureableParallelTestLimit extends ParallelTestLimit

    Permalink

    When using this trait, you can configure the number of test that can be executed in parallel by using environment variables.

    When using this trait, you can configure the number of test that can be executed in parallel by using environment variables.

    Example: TEST_LIMIT=2 Allow two tests to be executed at the same time.

    See also

    BrowserLimitSuite

  2. class DriverLaunchWrapper extends Suites with LimitProvider

    Permalink

    This class will wrap the "real" test suite.

    This class will wrap the "real" test suite.

    A list of driver factories is queried from @RunWithDrivers

    For each driver factory an instance of the "real" test suite is created.

    Annotations
    @DoNotDiscover()
  3. trait DriverLauncher extends SuiteMixin with LimitProvider

    Permalink

    Use this trait if you want to test against different browsers

    Use this trait if you want to test against different browsers

    When runTest and runTests are called in this test, this calls are delegated to the DriverFactory to create the driver instance if needed.

    Annotations
    @WrapWith()
  4. trait PageObjectSuite extends PageBrowser with DriverLauncher with DefaultDriverProvider

    Permalink

    When you decide to work with the PageObject pattern this trait is a most common customized adaption.

    When you decide to work with the PageObject pattern this trait is a most common customized adaption. It summarizes the traits needed for using the PageObject pattern. In detail: You need a PageBrowser to support the navigation, to work with WaitFor and PageHolder. The former allows to wait for events for a certain time, the latter administrates the internal web driver or element access. You need a DriverLauncher which starts the web driver. In this case you might use different browsers if needed. You need a DefaultDriverProvider to administrate the DriverLauncher. Last but not least you need BrowserLimitSuite to support the execution on multiple browsers in parallel. So this is the collection of traits needed to write a Page Object Suite.

    If you want to customize some parts you can extend your Suite with some of the trais listed here and replace others by a custom implementation.

    TODO: See https://github.com/agido/pageobject/issues/3 ConfigureableParallelTestLimit will cause display errors in IntelliJ IDEA

  5. trait ParallelTestLimit extends SuiteMixin with ParallelTestExecution

    Permalink

    Use this trait to override scalatests Distributor argument.

    Use this trait to override scalatests Distributor argument.

    The default Distributor can only create up to 16 threads, if you want to run more (e.g. when running a stress test) you need this trait.

  6. trait SingleThreadedTestRun extends ParallelTestLimit

    Permalink

    When using this trait, only one test can be executed at the same time

  7. trait UnlimitedParallelTestRuns extends ParallelTestLimit

    Permalink

    When using this trait, a unlimited number of test can be executed at the same time

Value Members

  1. object ConfigureableParallelTestLimit

    Permalink

    Management of thread pools by name.

    Management of thread pools by name.

    Can e.g. create a Thread Pool "Firefox" with 2 threads and another one called "Chrome" with 1 thread.

  2. object DriverLaunchWrapper extends Serializable

    Permalink

    Helper Object to get the corresponding DriverFactories

  3. object ParallelTestLimit

    Permalink

    Management of Threads used for testRuns.

    Management of Threads used for testRuns. Provides two special thread pools: singleThreadPool and unlimitedPool

  4. package tags

    Permalink

Ungrouped