Skip to content

Add a test result to a run

POST
/v1/runs/{run}/tests
curl --request POST \
--url https://api.proxymail.qa/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "status": "passed", "duration_ms": 1, "error": "example" }'

From a test runner’s reporter: a failed or flaky test (its name, status, duration_ms and the start of its error), or the suite’s totals. A failed test fails the run. Send failed and flaky tests one by one, then the totals; the report shows the totals at the top and each failed test with what its emails did.

run
required
string format: uuid
Media typeapplication/json
One of:
object
name
required
string
<= 200 characters
status
required
string
Allowed values: passed failed flaky skipped
duration_ms
number
error

Its first three lines are kept, up to 300 characters, without terminal colours.

string

Added

An error

Media typeapplication/json
object
error
string
message
string

Example generated

{
"error": "example",
"message": "example"
}

An error

Media typeapplication/json
object
error
string
message
string

Example generated

{
"error": "example",
"message": "example"
}

An error

Media typeapplication/json
object
error
string
message
string

Example generated

{
"error": "example",
"message": "example"
}