This tutorial describes how you can connect to the CrossBrowserTesting.com service by using the CrossBrowserTesting manager. This method of integrating with CrossBrowserTesting.com is deprecated starting with TestComplete 14.40. We recommend using the Device Cloud add-on instead. See About Cross-Platform Web Tests for details. |
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:
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:
-
Open the Event Control editor. To do this, double-click the Events > GeneralEvents node in Project Explorer:
-
On the Events to Handle list, find the
OnStartTest
event. -
Right-click it and then click Remove Event Hander:
-
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.
See Also
Running Tests in CrossBrowserTesting Environments - Tutorial
Integration With CrossBrowserTesting.com