Add a test result to a run
POST
/v1/runs/{run}/tests
const url = 'https://api.proxymail.qa/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tests';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","status":"passed","duration_ms":1,"error":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”run
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”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"}