Running Cross-Platform Web Tests in Parallel

Applies to TestExecute 14.74, last modified on March 01, 2021

From version 14.4, you can use TestComplete to create cross-platform web tests. Tests can be created in a local browser such as Chrome, Firefox, Edge, or Internet Explorer and then run in a wide range of web browsers and platforms (such as Safari, Linux, Unix, macOS, mobile Android and iOS) in a remote device cloud or a local Selenium Grid.

Creating cross-platform web tests

You create cross-platform web tests on a local computer where TestComplete is installed. For detailed information, please see the TestComplete documentation.

Running cross-platform web tests

When you run a cross-platform web test, the test engine will connect to the Device Cloud (CrossBrowserTesting) or your local Selenium Grid, command it to launch the needed web browsers, execute test commands there and then collects test results.

Requirements

  • An active license for one of the following:

    • For sequential test runs - Device Cloud.
    • For parallel test runs - Device Cloud Parallel.
  • To run tests in various browsers and on various devices, you must have Selenium Grid that manages them. It can be:

    • SmartBear device cloud solution — CrossBrowserTesting.com.

    • A private hub with Selenium Grid configured on your local computer or on a remote computer in your network. To learn more about installing and configuring Selenium Grid, see selenium.dev.

  • Your Selenium Grid must be accessible from the computer where TestExecute is installed.

Sequential test runs

When a test is being executed, an entire user session is taken over to simulate actions over UI elements. As a result, only one test can run at a given point in time. If your test suite has multiple tests, they run sequentially, one after the other.

You run the cross-platform web tests the same way you run any other test created with TestComplete. You can do it:

  • Manually, from the TestExecute context menu.

  • Automatically, by using the TestExecute command line or by using any suitable third-party task management or scheduling tool.

Parallel test runs

It is also possible to run cross-platform tests in parallel. This allows reducing the overall testing time and resource cost of your device cloud. TestExecute does not support running tests in parallel. To run tests in parallel, use the TestExecute Lite test runner tool that comes with the Device Cloud Parallel license. The tool does not require a user session to be open. TestExecute allows controlling the tool instances to run them in parallel:

  1. Create your cross-platform tests in TestComplete.

  2. In your TestComplete project, orchestrate parallel test runs either by using the project’s execution plan or by using the Parallel object.

  3. Run the project with TestExecute. It will launch the needed number of TestExecute Lite instances that will run the cross-platform web tests in parallel.

To learn more about parallel test runs, see:

Running Cross-Platform Web Tests in Parallel

Try for free

If you are interested in trying running tests in parallel, download the installer and start a free trial on our website:

https://downloads.smartbear.com/TestExecuteLite/

See Also

Running Tests With TestExecute

Highlight search results