![]() |
This method is obsolete. See the Remarks section below. |
Description
The Parallel.RunEnvironments
method runs cross-platform web tests in the specified remote environments in parallel.
Declaration
Parallel.RunEnvironments(Tests, Environments, TestedURL, ServerURL, TestTimeOut, LicenseCount)
Tests | [in] | Required | Array of strings | |
Environments | [in] | Required | Array of strings | |
TestedURL | [in] | Required | String | |
ServerURL | [in] | Required | String | |
TestTimeOut | [in] | Optional | Integer | Default value: 0 |
LicenseCount | [in] | Optional | Integer | Default value: 0 |
Result | None |
Applies To
The method is applied to the following object:
Parameters
The method has the following parameters:
Tests
The list of tests you want to run in parallel. It can be script routines, keyword tests, and BDD scenarios. The tests must belong to the same project from which you run the method.
You can specify tests either by their full name or by tags.
The full name includes the name of the collection to which the test belongs, and the test name separated by the pipe character. For script tests, the full name also includes the name of the unit.
To run tests that match a tag, specify the tag name in the @tag_name
format.
Environments
The list of environments where your tests will run. Each environment is described by the desired capabilities. The capabilities you can use are defined by your device cloud provider.
TestedURL
The URL of the web page that a web browser will open.
We recommend that you specify the complete URL of the desired page, including the protocol name, page extension, trailing slash, and so on. For instance, https://developer.mozilla.org/en-US/. You can copy the complete URL from the browser’s address bar.
ServerURL
Specifies the URL of the device cloud that manages the remote environments where your tests will run. It can be either a private cloud or a cloud provided as a service by a third-party provider, for instance, CrossBrowserTesting.
TestTimeOut
The number of minutes that TestComplete waits for the test run to finish. If the test run time exceeds the specified timeout, TestComplete will stop the test run and report an error to the test log.
If the value is 0 (default value), the wait time is not limited.
LicenseCount
The maximum number of tests that you want to execute simultaneously during the test run.
Result Value
None.
Remarks
The Parallel.RunEnvironments
method is obsolete and is supported only for backward compatibility. To run cross-platform web tests in parallel, use the Parallel.RunWebTests
or the Parallel.RunTests
methods.