K6 Load Testing
K6 is an open-source tool and cloud service that makes load testing easy for developers and QA engineers.
Prerequisite: Make sure you have set up an account in k6.io or get the API keys from an admin.
On the Edit build pipeline page, select the Pre-Build Stage (or Post-Build Stage).
Click + Add task.
Select K6 Load Testing from PRESET PLUGINS.
Enter a relevant name in the
Task namefield. It is a mandatory field.Enter a descriptive message for the task in the
Descriptionfield. It is an optional field.Provide a value for the input variable. Note: The value may be any of the values from the previous build stages, a global variable, or a custom value.
RelativePathToScript
String
Checkout path + script path along with script name
PrometheusUsername
String
Username of Prometheus account
PrometheusApiKey
String
API key of Prometheus account
PrometheusRemoteWriteEndpoint
String
Remote write endpoint of Prometheus account
OutputType
String
LOG or PROMETHEUS
Trigger/Skip Conditionrefers to a conditional statement to execute or skip the task. You can select either:Set trigger conditionsorSet skip conditions
Click Update Pipeline.
Last updated
Was this helpful?

