Skip to main content
Test StepsCreate Test Steps For TestCase
TestMu AI
StatusCommunityBlog
Test Steps

Create Test Steps For TestCase

Deprecated: Use PUT /api/v2/test-cases with step_events instead.

POST
/api/v1/test-steps
Create Test Steps For TestCase
curl --request POST \
--url "https://test-manager-api.lambdatest.com/api/v1/test-steps" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"test_case_id": "test_case_id",
"test_steps": [
{
"serial_no": 1,
"description": "enter emails and password",
"outcome": "Login error"
},
{
"serial_no": 2,
"description": "enter emails and password",
"outcome": "Login error"
}
]
}'
{
"message": "Test steps created successfully",
"type": "Success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
test_case_idstring
test_stepsarray

Response

application/json

OK

messagestring
Example: "Test steps created successfully"
typestring
Example: "Success"
Create Test Steps For TestCase
curl --request POST \
--url "https://test-manager-api.lambdatest.com/api/v1/test-steps" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"test_case_id": "test_case_id",
"test_steps": [
{
"serial_no": 1,
"description": "enter emails and password",
"outcome": "Login error"
},
{
"serial_no": 2,
"description": "enter emails and password",
"outcome": "Login error"
}
]
}'
{
"message": "Test steps created successfully",
"type": "Success"
}