REST API
Loadmill's API is an interface for interacting with Loadmill’s servers. Use it to create and launch your tests.
Last updated
Loadmill's API is an interface for interacting with Loadmill’s servers. Use it to create and launch your tests.
Last updated
Before getting started you’ll need to generate an API token, take a look how to generate it .
POST
https://app.loadmill.com/api/v1/test-suites/:id/run
Run a predefined test suite
id
string
UUID of the Test Suite to run.
forceAllFlows
boolean
Default = false - running only flows marked for execution with CI toggle. If true - executing all flows.
Authorization*
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".
additionalDescription
string
Add an additional description at the end of the current suite's description
overrideParameters
object
name: value
pairs to override the default parameters values of this specific run. i.e.
{{"paramName1":"paramVal1"}, ...}
GET
https://app.loadmill.com/api/v1/test-suites-runs/:id
Get a launched Test Suite results
id
string
The running uuid. You get this ID in the response when launching a Test Suite
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
GET
https://app.loadmill.com/api/v1/test-suites-runs/flows/:id
Get Test Suite Flow results
id
string
The flow running uuid. You get this ID when fetching the Test Suite Run entity
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
PUT
https://app.loadmill.com/api/v1/test-suites-runs/:id
Stop a launched Test Suite
id
string
The Test Suite Run uuid. You can get this ID in the response when getting the Test Suite Run (https://docs.loadmill.com/integrations/rest-api#get-test-suite-run-test-suite-results).
\
forceFail=true
string
Using this filter option the user can stop the Test Suite Run and put its status to FAILED
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
additionalDescription
string
Will be added at the end of the Test Suite Run description
POST
https://app.loadmill.com/api/v1/tests
Create a load test from load test configuration
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
config
object
A load test configuration. The JSON test configuration may be exported from the Loadmill test editor or from an old test run. See a config example here - https://docs.loadmill.com/load-testing/configuration-files
PATCH
https://app.loadmill.com/api/v1/test-suites/:suiteId/flows/:flowId/pools
Create a parameter pool and attach it to a flow
suiteId
string
The suite UUID in which the flow resides
flowId
string
The flow UUID. The parameter pool will be attached to this flow
name
string
name of the parameter pool data
content-type
string
must be text/csv
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
body
string
The CSV data in CSV format.
PUT
https://app.loadmill.com/api/v1/tests/:id/load
Run an existing load test. Be aware that a given load test can be run only once. In order to rerun it you will have to recreate it.
id
string
Load test ID
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
GET
https://app.loadmill.com/api/v1/tests/:id
Returns the Load Test data. If the Load Test has ended it would contain its result.
id
string
Load test ID
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security"
GET
https://app.loadmill.com/api/v1/labels
Returns all user's team's labels
filter=active&filter=evaluating
string
Using this filter option the user can get only the labels who are attached to flows with a specific status.
Authorization
string
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".
POST
https://app.loadmill.com/api/v1/test-plans/:test-plan-id/run
Run a predefined test plan
test-plan-id*
String
UUID of the Test Plan to run
Authorization*
String
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".
additionalDescription
String
Add an additional description at the end of the current plan's description
labels
Array
An array of strings representing labels to filter the test plan execution. i.e. ["label1", "label2"]
Only test flows with matching labels will be included in the execution.
labelsExpression
String
String representing of labels expression to filter the test plan execution. i.e. (label1 | label2) & !label3
An expression may contain the characters ( ) & | ! (
overrideParameters
Object
name:value
pairs to override the default parameters values of this specific run. i.e. {{"paramName1":"paramVal1"}, ...}
pool
String
Execute tests from a dedicated agent's pool (when using private agent)
parallel
String
Set the concurrency of a running test suites in a test plan. Max concurrency is 10
maxFlakyFlowRetries
String
The maximum number of retries for flaky test flows. If a test flow fails due to flakiness, it will be retried up to the specified number of times
GET
https://app.loadmill.com/api/v1/test-plans-runs/:plan-run-id
Get the Test Plan Run result
test-plan-run-id*
String
test plan run id - given when launching the test plan
Authorization
String
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".
POST
https://app.loadmill.com/api/v1/test-plans-runs/:test-plan-run-id/re-run
Re-run a test plan run
test-run-plan-id*
String
UUID of the Test Plan Run to re-run
onlyFailed
boolean
Default = false. When set to true only failed or stopped suites will re-run
Authorization*
String
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".
GET
https://app.loadmill.com/api/v1/test-suites
Returns a list of test suites
search
String
filter test suites by the given search phrase
rowsPerPage
String
How many suites to return, Values might be 10, 25, 50, 100
default to 10
Authorization*
String
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".
GET
https://app.loadmill.com/api/v1/test-plans
Returns a list of test plans
search
String
filter test suites by the given search phrase
rowsPerPage
String
How many suites to return, Values might be 10, 25, 50, 100
default to 10
Authorization*
String
Authentication token - you can generate it in the "User menu"> "Settings" > "Security".