跳到主要内容

Load & Performance Testing

Load testing executes a test case or suite concurrently to measure performance under varying levels of demand.

When to Use​

  • Establishing a baseline performance for an endpoint
  • Finding the breaking point of a service under increasing load
  • Verifying recovery after a sudden traffic spike
  • Simulating complex, real-world traffic patterns

Creating a Load Test​

  1. Right-click a test suite and select Add Performance Test. This creates a Load Test Case.
  2. Add the test steps as usual (typically a Send Request step with assertions).
  3. In the Properties tab, set Virtual Users and choose a load configuration.
  4. Run the load test case from the tree or toolbar.

Load Test Panel​

The Load Test editor has three tabs:

TabPurpose
PropertiesVirtual users, error behavior, log level, description, load configuration, and the test steps grid
Data GeneratorsConfigure data generators that feed varied input during the run
ParametersPer-case variables (case scope)

Properties​

FieldDescription
Virtual UsersNumber of concurrent test executions
Error BehaviorWhat happens when a user iteration fails
Log LevelVerbosity of the run log
DescriptionOptional notes
Load ConfigurationA segmented selector offering Basic Load Test, Stress Test, Spike Test, Custom Load Test, and Empty Load Test

A live chart previews the load profile (active users over time) as you configure it.

Load Test Modes​

ModeDescriptionUse Case
BasicFixed number of concurrent virtual usersEstablishing baseline performance
StressGradually increasing load until failureFinding breaking points
SpikeSudden burst of traffic then normalTesting recovery from traffic spikes
CustomUser-defined ramp-up, steady, and ramp-down phasesComplex real-world scenarios
EmptyNo generated load profile (configure manually)Advanced manual setup

Basic Load Test​

FieldDescription
Virtual UsersNumber of concurrent test executions
DurationHow long to sustain the load (seconds)
Ramp-Up TimeTime to gradually reach full concurrency (seconds)

Stress Test​

FieldDescription
Start UsersInitial number of concurrent users
Max UsersMaximum concurrent users to reach
Step SizeUsers to add per step
Step DurationTime between steps (seconds)

Spike Test​

FieldDescription
Baseline UsersNormal traffic level
Spike UsersPeak traffic level
Spike DurationHow long the spike lasts (seconds)
Recovery DurationHow long to observe after the spike (seconds)

Performance Metrics​

During and after execution, Aethrix collects:

MetricDescription
Avg Response TimeMean request duration
P50 / P95 / P99Percentile response times
Time to First ByteAverage time to first byte
ThroughputRequests per second
Error RatePercentage of failed requests
Failed IterationsCount or rate of failed iterations
Active ConnectionsConcurrent connections over time

Load Test Assertions​

Each performance metric can be used in a load test assertion with a configurable pass/fail threshold. Assertions are grouped into Service / Performance Assertions (operation-scoped) and Iteration Assertions (iteration-scoped), and produce Pass/Fail/Pending results visible in the report.

AssertionScopeMetricThreshold
Response TimeOperationAvg response timeMax ms
Nth PercentileOperationPn response timePercentile + max ms
Service Pass RateOperationSuccess rateMin %
Standard DeviationOperationResponse time std devMax ms
Time to First ByteOperationAvg TTFBMax ms
ThroughputOperationRequests/secMin req/s
Iteration Pass RateIterationOverall pass rateMin %
Ignored RateIterationIgnored iterationsMax count or %
Failed IterationsIterationFailed iterationsMax count or %

See Assertions for the full load test assertion reference.

Best Practices​

  • Start with a Basic load test to establish baseline performance.
  • Use realistic think times and data to simulate real users.
  • Run load tests against a dedicated test environment — never against production.
  • Monitor server-side metrics (CPU, memory, connections) alongside client-side metrics.
  • Combine load tests with data-driven testing for varied request payloads.

Limitations​

  • Load tests run within the Aethrix process — maximum concurrency is limited by machine resources.
  • For large-scale distributed load testing, consider external tools and use Aethrix for functional validation.

See Also​