You can use this load testing strategy to get a basis for your further load tests, or to assess how your server performs against the service-level agreement (SLA).
Your test should help you determine what response is normal for the server. You can then use these values to set up the assertion in other tests. You may also find server or target Test Case problems that would prevent longer load tests from running correctly. This is also a good way to check if your server performs according to the SLA.
To create baseline tests, we recommend using the Baseline load test template. By default, it will create a test with the following parameters:
|Simulated load||20 virtual users|
|Wait time||One second|
|Warmup time||15 seconds|
Time taken – Average
Time taken – Max
Two charts are created:
If you simulate the Fixed load profile with the VUs load type, you specify the constant number of virtual users to be simulated.
If you simulate the Fixed load profile with the Rate load type, you define the constant speed at which new users arrive to the server.
To estimate the server performance, add assertions and server monitors that will check the response time, the size of transferred data and other values to which your SLA can refer.
Here is what your test results may look like:
Assertions and Server Metrics
To examine the server performance, you can track various server-side metrics or use assertions.
With ReadyAPI, you can track various server-side metrics like memory and CPU usage, the number of database requests per second, and so on. To do this, you need to configure server monitors in your load tests. For detailed information, see the topics of the Server Monitoring section.
You can check metric data on the Server Monitoring and Statistics pages of the load test inspector.
The exact metrics to be checked depend on your server type and on the type of your server applications. For information on the available metrics, see Monitor Reference.
Below are some load test assertions that you may find useful in baseline tests:
|Test Target – Time Taken||Lets you control the request simulation time.|
|Test Steps – <Test Step Name> – Time Taken|
|Load Test – Failures – Total||Lets you check the total number of errors that occur during the test run.|
|Test Target - Failures – Total|
|Test Steps – <Test Step Name> – Failed|
|Test Steps – <Test Step Name> – Transactions||Lets you monitor the number of simulated transactions.|
|Test Target – Throughput||Lets you monitor the throughput (bytes per second or transactions per second).|
2. Load Test Editor Interface Overview
ReadyAPI Performance Licenses