Tests Array
The tests array is a required property of the Results Object. It contains individual Test Objects, each representing the execution and outcome of a single test.
Array Requirement
The tests array MUST be present, but it MAY be empty. An empty array indicates a test run with no executed tests.
Structure
results
└── tests[]
├── test[0]
├── test[1]
└── test[n]
Example
"tests": [
{
"name": "User login should succeed",
"status": "passed",
"duration": 1200
},
{
"name": "Invalid credentials should show error",
"status": "failed",
"duration": 850,
"message": "Expected error message not displayed"
},
{
"name": "Password reset - pending implementation",
"status": "pending",
"duration": 0
}
]
Related Documentation
- Test Object - Structure of individual test entries
- Results Object - Parent object containing the tests array
- Status Values - Valid test status values