API Reference

Test Cases

Create test cases for your products.

Create a bulk of test cases

Create multiple test cases at once.

Endpoint: POST /products/{product_id}/test_cases

Parameters:

  • product_id (number, required) - ID of the Product

Request Body:

  • test_cases (array[TestCase], required) - Array of test case objects

Example Request:

1curl -X POST "https://api.test.io/customer/v2/products/1/test_cases" \
2  -H "Authorization: Token YOUR_API_TOKEN" \
3  -H "Content-Type: application/json" \
4  -d '{
5    "test_cases": [
6      {
7        "title": "Login Test",
8        "steps": "1. Navigate to login page\n2. Enter credentials\n3. Click login"
9      }
10    ]
11  }'

Response: 201 Created

Returns an array of created test case objects.

Previous
Bug Report Confirmations