Forum Discussion
remixtedi
Occasional Contributor
Can you add support to add/update statuses of test steps? this will be great feature and we will move on your platform.
cbliard
4 years agoSmartBear Alumni (Retired)
remixtedi wrote:
Can you add support to add/update statuses of test steps? this will be great feature and we will move on your platform.
So we have just added this ability. You can find the relevant documentation on our REST API documentation
To explain it briefly: along with the status, status-author and description attributes, you can also add a step-statuses attribute. It must be an array of string. Each string is a status. Possible values are ‘passed’, 'failed’, 'wip’, 'retest’, 'blocked’, 'skipped’, 'undefined’.
It then looks like this:
Request
POST https://studio.cucumber.io/api/projects/8194/test_runs/274529/test_snapshots/17761339/test_results HTTP/1.1
Content-Type: application/json; charset=utf-8
Accept: application/vnd.api+json; version=1
access-token: xxxxx
client: xxxxx
uid: christophe.bliard@hiptest.net
{
"data": {
"type": "test-results",
"attributes": {
"status": "passed",
"status-author": "Chris",
"description": "Allright!",
"step-statuses": ["passed", "undefined", "passed"]
}
}
}
Response
{
"data": {
"type": "test-results",
"id": "218522447",
"attributes": {
"created-at": "2021-03-04T13:16:18.426Z",
"updated-at": "2021-03-04T13:16:18.426Z",
"last-author": "christophe.bliard@smartbear.com",
"status": "passed",
"description": "Allright!",
"status-author": "Chris",
"step-statuses": [
"passed",
"undefined",
"passed"
],
"test-snapshot-id": 17761339,
"execution-environment-id": 178455
},
"links": {
"self": "/test-results/218522447"
},
"relationships": {
"test-snapshot": {
"data": {
"type": "test-snapshots",
"id": "17761339"
}
},
"build": {
"data": {
"type": "builds",
"id": "1126746"
}
},
"execution-environment": {}
}
},
"included": [--truncated--]}
And a screenshot
Hope that helps 🙂
Related Content
- 2 years ago
Recent Discussions
- 2 months ago
- 2 months ago
- 2 months ago
- 2 months ago