For the complete documentation index, see llms.txt. This page is also available as Markdown.

Resilience Testing

Use the Harness CLI to manage the Resilience Testing module, including load tests, test runs, scripts, templates, and usage reports. Supports JMeter, Locust, and k6.

The Resilience Testing module in the Harness CLI manages load tests, test runs, scripts, and templates. It supports JMeter, Locust, and k6.

Before you begin

Load tests

List and inspect load tests:

harness list loadtest
harness get loadtest my-test

Create a load test from a YAML file:

harness create loadtest -f loadtest.yaml

Create from an existing template:

harness create loadtest:from_template -f config.yaml

Create from a JSON definition:

harness create loadtest:from_json -f definition.json

View available runtime variables for a test:

harness list loadtest:variables my-test

Execute a load test and stream results:

Override runtime variables at execution time:

Sync a load test definition:

Update or delete a load test:

Test runs

List and inspect test runs:

Inspect run results in detail:

Stop or rerun a test run:

Scripts

List and manage load test scripts and their revision history:

Templates

List and manage reusable load test templates:

View template variables and YAML definition:

Manage template revisions:

Composite load tests

A composite load test groups multiple individual load tests to run as a coordinated set. List composite tests to see all defined groupings in the account.

Usage reports

View usage summaries and reports. These commands are account-wide and ignore --org and --project:

Next steps

Last updated

Was this helpful?