Skip to content

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


Create Test Case API

Sample

Request

 
  URL: /platform/v1/projects/[project_id]/testcases/[testcase_id]/updateLveAndRecoverSteps
  Method: POST

  Hearders
    Authorization: "Bearer [auth_token]"
    Content-Type: "application/json"

Request Body

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

Response body is empty for this request

See also

Clone this wiki locally