When using this trait, you can configure the number of test that can be executed in parallel by using environment variables.
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.
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.
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
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.
When using this trait, only one test can be executed at the same time
When using this trait, a unlimited number of test can be executed at the same time
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.
Helper Object to get the corresponding DriverFactories
Management of Threads used for testRuns.
Management of Threads used for testRuns. Provides two special thread pools: singleThreadPool and unlimitedPool
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.
BrowserLimitSuite