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)
-
NameMapping configured
Note: Make sure the load testing extension is turned on in TestComplete in File -> Install Extensions -> Load Testing
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
-
Log in to your LoadNinja account.
-
Go to Settings in your profile.
-
Open the API Keys tab.
-
Copy the existing key or click Regenerate to get a new one.
How to get started
-
Go to File → Install Extensions → Load Testing. Enable the Load Testing option.
-
Open a new keyword test or an existing one and record steps.
-
Go to Execution Plan in TestComplete and create a load group.
NameMapping must be configured and available for the LoadNinja integration to work properly. Make sure that all objects and elements involved in the integration are correctly mapped in the NameMapping file.
-
Adjust the load configuration settings in the load group.
-
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.
-
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.
-
Run your test and wait for the execution.
-
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.
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 |