Skip to main content

API Test Suites

Group multiple API test scenarios into a suite for batch execution. Suites run scenarios sequentially or in parallel and report results at the suite level.

Creating a Suite

POST /api/scenario-groups
{
"name": "User Service Smoke Tests",
"description": "Core API validation for User Service",
"projectId": 2,
"environmentId": 1,
"executionMode": "SEQUENTIAL",
"items": [
{"scenarioId": 1, "scenarioName": "Health Check", "sortOrder": 1},
{"scenarioId": 2, "scenarioName": "CRUD Lifecycle", "sortOrder": 2},
{"scenarioId": 3, "scenarioName": "Auth Validation", "sortOrder": 3}
]
}

Execution Modes

ModeDescriptionUse Case
SEQUENTIALRun scenarios one after anotherWhen scenarios depend on each other
PARALLELRun all scenarios simultaneouslyIndependent scenarios, faster execution

Running a Suite

POST /api/scenario-groups/{id}/execute
{
"tag": "v2.1-smoke"
}

Response shows results per test case (not per step):

{
"groupName": "User Service Smoke Tests",
"executionMode": "SEQUENTIAL",
"totalScenarios": 3,
"passed": 2,
"failed": 1,
"results": [
{"scenarioName": "Health Check", "status": "COMPLETED"},
{"scenarioName": "CRUD Lifecycle", "status": "COMPLETED"},
{"scenarioName": "Auth Validation", "status": "FAILED"}
]
}

Managing Suites in the UI

Navigate to API TestsSuites tab:

  • View all suites with test counts
  • Click test chips to open individual test details
  • Run Suite button executes all tests
  • Delete suites when no longer needed

Suite vs Individual Execution

IndividualSuite
ReportingPer scenarioPer suite (scenarios aggregated)
ScoringEach scenario contributes separatelySuite result contributes as a unit
Use caseDevelopment/debuggingRegression testing, release validation