{{apiUrl}}/api/v1/logs
This endpoint allows you to submit test execution logs. See API Collection
Example Request
{
"run": {
"key": "PVT-TR246" // Unique identifier for the test run
},
"step": {
"number": "3" // Test step number (starting from 1)
},
"result": {
"name": "passed" // Valid values: ['n/a', 'failed', 'passed', 'untested']
},
"actualResult": "From API" // The actual outcome of the test step execution
}
Example Response
After submitting the request, the API returns a JSON response
{
"success": true,
"message": "A new Test Log created.",
"data": {
"log": {
"identifier": "fc63-e54c-11ef-bf2e-aa9b556e442d"
}
}
}
HEADERS
Authorization
<vansahConnectToken>
Body
raw (json)
{
"run": {
"key": "PVT-TR246" // Test run key from the previous API call
},
"step": {
"number": "4" // Step number, starting from 1
},
"result": {
"name": "passed" // Accepted values: ['n/a', 'failed', 'passed', 'untested']
},
"actualResult": "From API" // Actual outcome of the test step
}