create_load_test
Create a load test (a kind "load" feature) from a configuration.
Last updated
Was this helpful?
Was this helpful?
curl -X POST -H "Authorization: Bearer $TESTVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Checkout under load",
"config": {
"mode": "advanced",
"paths": ["/", "/checkout"],
"vus": 50, "durationSeconds": 300, "rampUpSeconds": 30,
"thresholds": [{ "metric": "http_req_duration", "condition": "p(95)<1000" }]
}
}' \
"$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/load"# Simple mode — replay two functional features as 30 concurrent users
testvibe load create --name "Checkout under load" --features 7,8 --vus 30 --repeats 5
# Advanced mode — protocol k6 against paths, with a latency gate
testvibe load create --name "API soak" --mode advanced \
--paths /,/pricing --vus 50 --duration 300 --ramp 30 \
--thresholds "http_req_duration:p(95)<1000,http_req_failed:rate<0.01"{ "featureId": 51, "name": "Checkout under load", "mode": "advanced", "status": "generated" }