POST
/
projects
/
{projectUuid}
/
test-cases
Create a new test case
curl --request POST \
  --url https://app.qa.tech/api/projects/{projectUuid}/test-cases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "name": "Login Test",
  "goal": "Verify that users can log in successfully",
  "expectedResult": "User should be redirected to dashboard after successful login",
  "resumeFromDependencyProjectTestCaseId": "550e8400-e29b-41d4-a716-446655440000",
  "waitForDependenciesProjectTestCaseIds": [
    "550e8400-e29b-41d4-a716-446655440001",
    "550e8400-e29b-41d4-a716-446655440002"
  ],
  "configIds": [
    "config-uuid-1",
    "config-uuid-2"
  ],
  "applicationId": "550e8400-e29b-41d4-a716-446655440000",
  "scenarioId": "scenario-uuid-123"
}'
{
  "success": true,
  "testCase": {
    "id": "test-case-uuid",
    "name": "Test Case Name",
    "url": "https://app.qatech.com/dashboard/p/project_slug/test-cases/test-case-uuid/edit"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string
required

The media type of the request body. Should be set to application/json

Example:

"application/json"

Authorization
string
required

Bearer token for API authentication

Example:

"Bearer your-api-token"

Path Parameters

projectUuid
string<uuid>
required

The UUID of the project

Body

application/json

Response

200
application/json

Successfully created test case

The response is of type object.