POST /api/v2/testRuns/{testRunId}/testResults
If "TestPoints required for autoTestResult with configurationId: {id} and autoTestExternalId: {id}" error occurs, please check whether the configuration and autoTestExternalId in the request are correct. They must be the same as the values that were sent when you created the test run.
Required fields:
"configurationId": "GUID" is the GUID of the autotest configuration, which was specified when the test run was created.
"autoTestExternalId": "string" is the external id of the autotest, which was specified when the test run was created.
"outcome": "string" - the result of the autotest execution. Values: (Passed, Failed, Blocked, Skipped).
Optional fields:
"links": [ { "title": "string", "url": "string", "description": "string", "type": "Related" } ] - block with information about result links. title - link name, description - link description. url can be specified without protocol, but necessarily with domain. Acceptable value of the link type: Related, Blocked by, Defect, Issue, Reqirement, Repository.
"failureReasonName": "string" is the cause of autotest failure. Values: InfrastructureDefect, ProductDefect, TestDefect, NoDefect.
"message": "string" - a comment of the result
"traces": "string" - an extended comment or stack trace.
"startedOn": "2020-09-25T09:19:42.411Z" - test run start date. "YYYY-MM-DDTHH:MM.SSZ" format.
"completedOn": "2020-09-25T09:19:42.411Z" test run end date. "YYYY-MM-DDTHH:MM.SSZ" format.
"duration": 0 - expected or actual duration of the test run execution in seconds. Values from 0 to 86400.
"attachments": "GUID" is an attachment GUID. Multiple values can be sent.
"parameters": "additionalProp1": "string" - "parameter": "value" pair with arbitrary custom parameters. Multiple parameters can be sent.
"properties": "additionalProp1": "string" - "property": "value" pair with arbitrary custom properties. Multiple properties can be sent: "stepResults": [ { "title": "string", "description": "string", "startedOn": "2020-09-25T09:19:42.411Z", "completedOn": "2020-09-25T09:19:42.411Z", "duration": 0, "outcome": "string", "stepResults": [ null ], "attachments": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } ], "parameters": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } ]
- the results of individual steps. title - the name of the step, description - description of the step result, it appears when the step is unfolded. stepResults inside the stepResults are the results of nested steps and it completely repeats the stepResults model. If you don't need the results of nested steps, don't pass the "stepResults": [{ null }] inside the steps. The maximum nesting level is 15.
"setupResults": [ { "title": "string", "description": "string", "startedOn": "2020-09-25T09:19:42.411Z", "completedOn": "2020-09-25T09:19:42.411Z", "duration": 0, "outcome": "string", "stepResults": [ null ], "attachments": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } ], "parameters": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } ]
see description for "stepResults" model.
"teardownResults": [ { "title": "string", "description": "string", "startedOn": "2020-09-25T09:19:42.411Z", "completedOn": "2020-09-25T09:19:42.411Z", "duration": 0, "outcome": "string", "stepResults": [ null ], "attachments": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } ], "parameters": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } ]
see description for "stepResults" model.
Last modified 3mo ago
Copy link