Get Test Results
Use this endpoint when you need to export the structured result content of a completed test run, for example to synchronize webmate results into external test management tools such as Jira Xray or aqua.
The result payload includes text cells and steps for the provided testRunId.
| Endpoint | /testmgmt/testruns/{testRunId}/results |
| Method | GET |
| testRunId | Id of test run to get results for |
| return schema | List of JSON with results |
| return example | [{"value": {},"meta": ...}] |
You can use this endpoint the following way:
You need an authenticated webmateSession to call this function, see this article
on how to set up and authenticate with the SDK.
| Parameter | |
|---|---|
| testRunId | webmate TestRunId of test run to get results for |
| |
You need an authenticated webmateSession to call this function, see this article
on how to set up and authenticate with the SDK.
| Parameter | |
|---|---|
| testRunId | webmate TestRunId of test run to get results for |
| |
Retrieve screenshot artifacts
Screenshots and other binary evidence are exposed as artifacts. Use the test-run result endpoint together with the artifact endpoints when an integration needs both textual results and images.
Get the structured result content:
1GET /testmgmt/testruns/{testRunId}/resultsList artifacts for the same test run:
1GET /projects/{projectId}/artifact?testRunId={testRunId}This response contains artifact metadata.
Fetch the artifact details for the relevant artifact ids:
1GET /artifact/artifacts?ids={commaSeparatedArtifactIds}Use this response to identify the screenshot image ids.
Download each screenshot image:
1GET /images/{imageId}
Keep the projectId, testRunId, artifact ids, and image ids from the same test run together in your integration.
This makes it easier to map screenshots back to the result step or finding that produced them.