Load Testing Capabilities

Applies to TestComplete 15.68, last modified on October 16, 2024

Introduction

As of October 2024, we have introduced load testing capabilities in TestComplete.

Learn more about LoadNinja in our documentation.

Prerequisites

  • A LoadNinja account with APIKey

  • TestComplete 15.68 (or higher)

Note: Make sure the load testing extension is turned on in TestComplete in File -> Install Extensions -> Load Testing

Load Testing - Extensions Window

Click the image to enlarge it.

About integration

Thanks to this integration, you can perform UI load tests based on functional tests. For now it only works for keyword testing. Load testing only works for keyword tests created on Chrome and Edge browsers. Tests created on Firefox are not currently supported.

Free trial

You can discover the capabilities of load testing with our 14-day free trial. Learn more here.

How to get the LoadNinja APIKey

  1. Log in to your LoadNinja account.

  2. Go to Settings in your profile.

  3. Open the API Keys tab.

  4. Copy the existing key or click Regenerate to get a new one.

How to get started

  1. Go to File → Install Extensions → Load Testing. Enable the Load Testing option.

  2. Open a new keyword test or an existing one and record steps.

  3. Go to Execution Plan in TestComplete and create a load group.

    Add a load group to your tests

    Click the image to enlarge it.

  4. Adjust the load configuration settings in the load group.

    Adjust the load configuration settings

    Click the image to enlarge it.

  5. After you've created the load group, add the desired keyword tests (that you want to run as a load test) to this group. Right-click on the selected keyword test and select the "Add to Load Group" option. You can also drag the test onto the created load group.

    Context menu for adding a load group

    Click the image to enlarge it.

  6. After adding tests to a load group, you can edit the load group to adjust the load distribution, such as the number of virtual users per test and the region from which the traffic should come.

    Context menu for adding a load group

    Click the image to enlarge it.

    Context menu for adding a load group

    Click the image to enlarge it.

  7. Run your test and wait for the execution.

    Run tests

    Click the image to enlarge it.

    Run tests

    Click the image to enlarge it.

  8. You will see the results of your test in TestComplete logs. Double click on a log to see the results from load test execution. Read more about how to analyze the results here.

    Test results

    Click the image to enlarge it.

Constraints

Note that these operations don't work with the LoadNinja integration:

  • loops (for, while)

  • conditionals (if)

  • OCR

List of Supported TestComplete Actions or Methods in Load Tests

Action Support
Maximize Yes
Position Yes
Click Yes
ClickChecked Yes
ClickButton Yes
SetText Yes
FindElement Supported, but we are working to ensure the highest possible stability
Keys Yes
DblClick Yes
ClickR Yes
Drag Supported, but we are working to ensure the highest possible stability
Wait Yes
ClickItem Yes
ToUrl Supported, but we are working to ensure the highest possible stability
Browser Dialogs (Alert/Confirm/Prompt) Supported, but we are working to ensure the highest possible stability

Further reading

Highlight search results