Delete a Test in Test Suite
API Explorer /multi-tests/{collectionId}/remove-tests-executions
To remove a test from a test suite, you need to provide the index
value of the test you want to remove. In the example to the right, the index
value provided was 1
, which references the second test in the test suite with the collectionId
of 12345678
, is deleted from the test suite.
collectionId
of the test suite, use List Tests to return a list of your created test suites.Delete a Test in Test Suite
curl 'https://a.blazemeter.com/api/v4/multi-tests/12345678/remove-tests-executions' \
-X POST \
-H 'Content-Type: application/json' \
--user 'api_key_id:api_key_secret' \
-d '{"index": 1}'
Delete a Test in Test Suite Request Attributes
Attributes
-
index
integerrequired
Denotes which test will be deleted from the given test suite. For example,
0
will reference the first test attached to the test suite,1
will reference the second test attached to the test suite, etc.
Delete a Test in Test SuiteDelete a Test in Test Suite POST Body (JSON)
{
"index": 1
}
Delete a Test in Test Suite Response Attributes
For the full details of all the attributes for the test suite (multi-test), you can visit The Multi-Test Object.
Response200 OK
{
"api_version": 4,
"error": null,
"result": {
"id": 12354678,
"name": "API Created Functional Suite Test",
"description": null,
"collectionType": "functionalTestSuite",
"userId": 123456,
"items": [],
"oldVersionId": null,
"lastRunTime": null,
"draftId": null,
"filesToSplit": [],
"dataFiles": [],
"creatorClientId": "gui",
"testsForExecutions": [
{
"testId": 1234567,
"executions": [
{
"concurrency": 1,
"iterations": 1,
"locations": {
"harbor-58d3b97ff132adc0347b23c6": 1
},
"locationsWeighted": true,
"testId": 1234567,
"scenario": "My Scenario"
}
],
"overrideExecutions": [
{
"iterations": 1,
"executor": "taurus"
}
]
}
],
"migratedFromTestCollectionId": null,
"migratedToTestId": null,
"v4MigratedDate": null,
"underMigration": null,
"shouldSendReportEmail": false,
"created": 1591994426,
"updated": 1591994928,
"note": null,
"projectId": 123456,
"lastUpdatedById": null,
"kpiTrackingData": null,
"tests": [
{
"id": 1234567,
"isNewTest": true,
"lastRunTime": 1586202190,
"name": "API Functional Validation Test",
"userId": 123456,
"creatorClientId": "gui",
"overrideExecutions": [
{
"iterations": 1,
"executor": "taurus"
}
],
"executions": [
{
"concurrency": 1,
"iterations": 1,
"locations": {
"harbor-58d3b97ff132adc0347b23c6": 1
},
"locationsWeighted": true,
"scenario": "My Scenario"
}
],
"shouldSendReportEmail": false,
"dependencies": [],
"created": 1586201920,
"updated": 1586202071,
"configuration": {
"type": "functionalApi",
"canControlRampup": false,
"targetThreads": 0,
"enableMockServices": false,
"scriptType": "taurus",
"filename": "blazemeterscript.yaml",
"testMode": "http",
"extraSlots": 0
}
}
],
"masters": []
},
"request_id": "5ee3ea305c6c4"
}