-
Notifications
You must be signed in to change notification settings - Fork 0
Update Test Case API
gcvfi edited this page Mar 31, 2020
·
3 revisions
Back to AIQ API Guide | Home
Note: Draft content, work in progress
URL: /platform/v1/projects/[project_id]/testcases/[testcase_id]/updateLveAndRecoverSteps
Method: POST
Hearders
Authorization: "Bearer [auth_token]"
Content-Type: "application/json"
We need to send both recoverSteps and brokenDownSteps for this operation
{
"recoverSteps": [
{
"data": "https://www.google.com/search?q=usa+time",
"instr": "open website",
"expectedResults": "",
"xpath": "",
"stepId": ""
},
{
"data": "london",
"instr": "Enter text",
"columnName": "",
"expectedResults": "",
"xpath": "",
"stepId": ""
},
{
"data": "",
"instr": "Hit Enter",
"columnName": "",
"expectedResults": "",
"xpath": "",
"stepId": ""
}
],
"brokenDownSteps": [
{
"instr": "open website",
"data": "https://www.google.com/search?q=usa+time",
"instrNum": "1",
"sendToTestCaseParser": true,
"status": "5",
"expectedResults": "",
"xpath": "",
"subInstructions": [],
"hasChild": false
},
{
"data": "london",
"instr": "Enter text",
"instrNum": "2",
"expectedResults": "",
"xpath": "",
"status": "5",
"message": "",
"screenshotNo": "",
"screenshotSmallPaths": [],
"screenshotPaths": [],
"hasChild": false,
"columnName": "",
"fromMain": true,
"sendToTestCaseParser": true,
"subInstructions": [],
"duration": 0,
"actualResult": ""
},
{
"data": "",
"instr": "Hit Enter",
"instrNum": "3",
"expectedResults": "",
"xpath": "",
"status": "5",
"message": "",
"screenshotNo": "",
"screenshotSmallPaths": [],
"screenshotPaths": [],
"hasChild": false,
"columnName": "",
"fromMain": true,
"sendToTestCaseParser": true,
"subInstructions": [],
"duration": 0,
"actualResult": ""
}
]
}
Response body is empty for this request