Forum Discussion
kadeoya
May 09, 2023Copper Contributor
Postman payload to create workitem type of testcase with step action and step expected result
I have been trying to create a Postman payload to create a workitem type of testcase that that has step action and step expected result. I have tried several formats but non has worked. I can create a testcase, but unable to add the steps. Please help out.
This is the payload i'm presently trying but unable to create it.
[
{
"op": "add",
"path": "/fields/System.Title",
"from": null,
"value": "Test Case Title"
},
{
"op": "add",
"path": "/fields/Microsoft.VSTS.TCM.Steps",
"from": null,
"value": [
{
"stepId": 1,
"title": "Step 1",
"expectedResult": "Expected result for Step 1"
},
{
"stepId": 2,
"title": "Step 2",
"expectedResult": "Expected result for Step 2"
}
]
}
]
No RepliesBe the first to reply