Applies to TestComplete 14.20, last modified on September 11, 2019

After you make sure that the test is executed successfully in the browser you used for recording, you can easily modify the test so that it can be executed in different browsers (the so called cross-browser testing). This helps you ensure that the web application works correctly in various browsers.

Now, we will modify the test so that it runs in all supported browsers installed in our system.

  1. Open the test in the Keyword Test editor.

  2. Right-click the Run Browser operation and select Make Browser Loop from the context menu:

    Getting Started with TestComplete (Web): Convert Run Browser operation into Browser Loop operation
  3. In the ensuing operation parameters dialog, select Iterate Through All Browsers and click Finish.

    Getting Started with TestComplete (Web): Browser Loop operation parameters

    This will convert the Run Browser operation into the Browser Loop operation.

  4. Select all the test operations that go after the Browser Loop operation and click to move them inside the loop. Now these operations will be executed on each loop iteration.

    Here is how the resulting test should look like:

    Getting Started with TestComplete (Web): A cross-browser test
  5. Save the test by selecting File > Save from the TestComplete main menu.

Prepare and configure another browsers as described in the sections of Preparing Web Browser step.

Now run the resulting test.

TestComplete will repeat the test operations several times. Each time, the test actions will be performed in a different browser.

The test log contains information about which browser was used and the results of the test operations performed in each browser.

Getting Started with TestComplete (Web): The results of a cross-browser test

For more information on cross-browser testing with TestComplete, see About Cross-Browser Testing in TestComplete.

Prev     Next

See Also

About Tested Web Page
About Cross-Browser Testing in TestComplete

Highlight search results