Finish Test Run
Note:
See the API documentation for this endpoint (opens in a new tab)
for more information.
For general webmate API usage, see REST API
.
Finalize the given test run and mark it as successful or failed with an optional failure message.
| Endpoint | /testmgmt/testruns/{testRunId}/finish |
| Method | POST |
| testRunId | ID of test run to finish |
| Body | {"status": "unknown/failed/passed/pending_passed/pending_failed/skipped","message": "string","details": "string"} |
| return schema | JSON with result (success or failure) and optional message |
| return example | {"result": "success"} |
You can call the endpoint like this:
You need an authenticated webmateSession to call this function, read this article
on how to set up and authenticate with the SDK.
| Parameter | |
|---|---|
| status | webmate TestRunEvaluationStatus (unknown/failed/passed/pending_passed/pending_failed/skipped) |
| msg (optional) | String |
| detail (optional) | String |
You need an authenticated webmateSession to call this function, read this article
on how to set up and authenticate with the SDK.
| Parameter | |
|---|---|
| status | webmate TestRunEvaluationStatus (unknown/failed/passed/pending_passed/pending_failed/skipped) |
| msg (optional) | String |
| detail (optional) | String |