Profile Mode

Applies to TestComplete 14.40, last modified on April 22, 2021
Information in this topic applies to generic desktop applications (.NET, WPF, Delphi and others).

AQtime is a SmartBear product that traces the application execution, checks for performance bottlenecks and memory leaks. When you select the Profile run mode, TestComplete launches your application under AQtime, so AQtime traces the application performance and memory leaks while TestComplete is simulating user actions and performing other test operations. When the test run is over, you get two result sets: one in AQtime and another in TestComplete. You can command AQtime to save the results to a file and post a link to this file to the test log. You can then quickly access the profiling results to see which areas of the application code were covered by the tests, whether there were some memory or resource leaks in the application, investigate the application performance or other profiler-dependent characteristics.

If you have previously created and configured an AQtime project to profile your application, you can use it to test your application in Profile mode. In this case, the results obtained during profiling will also be added to AQtime project results. If you do not specify any project, TestComplete will create a temporary project and delete it after the profiling is over.

For more information on how to profile tested applications during the test execution, see:

Integration With AQtime

Coverage Testing

Requirements

Activating Profile Mode

To activate the Profile mode for a tested application:

  • Select the application in the TestedApps editor.

  • In the Basic Parameters section, select Profile from the Run Mode combo box.

  • In the Run-Mode Parameters section, select the needed profiler and other parameters. See Profile Mode Parameters.

  • Select File | Save from the main menu of TestComplete to save the changes.

From now on, when you launch the application from Project Explorer, from the TestedApps editor or from tests using the Run TestedApp keyword test operation or the TestedApps.AppName.Run scripting method, TestComplete will launch both your tested application and AQtime. AQtime will profile the application and post a link to the profiling report to the test log.

You can also activate the Profile mode and specify its parameters from your keyword tests and scripts. To learn how to do this, see Editing Desktop Application Parameters.

Profile Mode Parameters

You can view and change the Profile mode parameters, such as the AQtime project and profiler, in the TestedApps editor. For a detailed description of available parameters, see:

Profile Mode Parameters

See Also

About Tested Applications
Integration With AQtime
Coverage Testing
Run Modes and Parameters
Profile Mode Parameters

Highlight search results