Object

org.pageobject.core.tools

Limit

Related Doc: package tools

Permalink

object Limit

Support for running multiple browsers in parallel.

Can be set by environment variable or with typesafe config under the path org.pageobject.<name>-limit

Overall test limit: Use TEST_LIMIT=-1 to allow unlimited parallel test runs The default TEST_LIMIT is 1, use TEST_LIMIT=4 to allow 4 tests to be executed at the same time.

Browser test limit: When not configured, a limit of 1 is assumed if the browser driver is configured. Use 0 to disable a Browser. Use -1 to allow an unlimited count for the given Browser type.

Example: FIREFOX_LIMIT=0 ->Do not start Firefox tests

Example: FIREFOX_LIMIT=3 CHROME_LIMIT=5 TEST_LIMIT=5 -> Start up to 5 tests, but no more then 3 Firefox Tests at the same time.

Only Browsers that are supported for the platform where the tests are executed will be started. E.g. you don't need to disable Internet Explorer or Safari on Linux

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Limit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Limit(name: String, propertyName: Option[String] = None, webdriverProperty: Option[String] = None, defaultOption: Option[Int] = None, isBrowser: Boolean = true) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object ChromeLimit extends Limit

    Permalink

    How may Chrome instances should be used concurrently.

    How may Chrome instances should be used concurrently.

    Add property -Dwebdriver.chrome.driver=... to tell pageobject how to start chrome. See https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver

    Set CHROME_LIMIT=n with n > 1 to run more then one instance at the same time. Set CHROME_LIMIT=-1 to allow a unlimited number of instances.

    Default is CHROME_LIMIT=1 if -Dwebdriver.chrome.driver is set, CHROME_LIMIT=0 otherwise.

    You may also need to adjust TEST_LIMIT.

  5. object FirefoxLimit extends Limit

    Permalink

    How may Firefox instances should be used concurrently.

    How may Firefox instances should be used concurrently.

    Add property -Dwebdriver.firefox.bin=... to tell pageobject how to start firefox. See https://github.com/SeleniumHQ/selenium/wiki/FirefoxDriver

    Set FIREFOX_LIMIT=n with n > 1 to run more then one instance at the same time. Set FIREFOX_LIMIT=-1 to allow a unlimited number of instances.

    Default is FIREFOX_LIMIT=1 if -Dwebdriver.firefox.bin is set, FIREFOX_LIMIT=0 otherwise.

    You may also need to adjust TEST_LIMIT.

  6. object HtmlUnitLimit extends Limit

    Permalink

    How may HtmlUnit instances should be used concurrently.

    How may HtmlUnit instances should be used concurrently.

    You need to add HtmlUnit to the classpath to be able to use it.

    Set HTMLUNIT_LIMIT=n with n > 1 to run more then one instance at the same time. Set HTMLUNIT_LIMIT=-1 to allow a unlimited number of instances.

    Default is HTMLUNIT_LIMIT=0, do not run tests using HtmlUnit.

    You may also need to adjust TEST_LIMIT.

  7. object InternetExplorerLimit extends Limit

    Permalink

    How may Internet Explorer instances should be used concurrently.

    How may Internet Explorer instances should be used concurrently. Internet Explorer is only supported on windows and will be ignored on other platforms.

    Add property -Dwebdriver.ie.driver=... to tell pageobject how to start internet explorer. See https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver

    Set IE_LIMIT=n with n > 1 to run more then one instance at the same time. Set IE_LIMIT=-1 to allow a unlimited number of instances.

    default is IE_LIMIT=1 if -Dwebdriver.ie.driver is set, IE_LIMIT=0 otherwise.

    You may also need to adjust TEST_LIMIT.

  8. object SafariLimit extends Limit

    Permalink

    How may Safari instances should be used concurrently.

    How may Safari instances should be used concurrently. Safari is only supported on osx and will be ignored on other platforms.

    Add property -Dwebdriver.safari.driver=... to tell pageobject how to start safari. See https://github.com/SeleniumHQ/selenium/wiki/SafariDriver.

    Set SAFARI_LIMIT=n with n > 1 to run more then one instance at the same time. Set SAFARI_LIMIT=-1 to allow a unlimited number of instances.

    Default is SAFARI_LIMIT=1 if -Dwebdriver.safari.driver is set, SAFARI_LIMIT=0 otherwise.

    You may also need to adjust TEST_LIMIT.

  9. object TestLimit extends Limit

    Permalink

    How many Browsers should be used concurrently.

    How many Browsers should be used concurrently.

    Set environment variable TEST_LIMIT to change this setting.

    Default is TEST_LIMIT=1, do not run tests in parallel Set to TEST_LIMIT=n with n > 1 to allow parallel test runs. Set to TEST_LIMIT=-1 to allow unlimited parallel tests.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped