If your tests are being executed slowly, it may be down to a number of factors. In this recipe, we will consider the most frequently emerging problems and their possible resolutions.
In order to increase run speed, we can perform the following changes:
Visualizer allows us to capture screenshots of the window that TestComplete is currently working with each time TestComplete interacts with the controls elements. Since this can happen quite often, creation of the screenshots will be time consuming, and there is no necessity to capture all the resulting screenshots, so, it is recommended that the Visualizer be turned off. The method to turn off the Visualizer varies in different versions of TestComplete.
Frequent resorting to the aqUtils.Delay
method in the tests may significantly slow down scripts execution time. Try to avoid usage of this method by replacing it with the corresponding Wait
functions.
The Object Browser tab allows us to flexibly customize the displayed objects with the help of the filters buttons in the upper part of the Object Browser panel. It is recommended to disable the invisible objects and display only the processes that pertain to the tested applications. This will expedite renewal of the tree of objects.
3.142.166.31