2. Prepare TestComplete Test Project

Applies to TestComplete 14.10, last modified on June 5, 2019

Before you run your web tests in CrossBrowserTesting environments, you may need to modify your tests so that they could run successfully:

  • The SimpleTest_Sample test includes the Run Browser operation that launches the Internet Explorer web browser:

    CrossBrowserTesting tutorial: The Run Browser operation

    When you run the test in CrossBrowserTesting environments, the test engine will ignore the command and will use the web browser that is already running in the environment. You can disable the operation, however, we recommend that you leave it as it is. This will keep your test runnable on your local computer.

  • The test project includes a handler for the OnStartTest event that is triggered upon each test run. The event handler searches for all running Internet Explorer instances and terminates them before the test starts. This can be helpful to make sure there is no stray Internet Explorer instances left from previous test runs and to clean your testing environments before the current run.

    However, when you run your tests in the CrossBrowserTesting cloud, the environments are prepared for testing automatically. We recommend that you disable the event handler for running tests in environments where Internet Explorer is running:

    1. Open the Event Control editor. To do this, double-click the Events > GeneralEvents node in Project Explorer:

      CrossBrowserTesting tutorial: Open the Event Control editor
    2. On the Events to Handle list, find the OnStartTest event.

    3. Right-click it and then click Remove Event Hander:

      CrossBrowserTesting tutorial: Remove event handler
    4. Save the changes to your project.

Now, the test project is ready for running in CrossBrowserTesting environments. To learn more about preparing tests for running in the CrossBrowserTesting cloud, see Preparing TestComplete Tests for Running in CrossBrowserTesting Environments.

Prev     Next

See Also

Running Tests in CrossBrowserTesting Environments - Tutorial
Integration With CrossBrowserTesting.com

Highlight search results