Skip to content

Create Test Case API

gcvfi edited this page Mar 31, 2020 · 2 revisions

Back to AIQ API Guide | Home


Note: Draft content, work in progress


Create Test Case API

Sample

Request

 
  URL: /platform/testCases/create/[account_id]/[project_id]
  Method: POST

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

Request Body

{
    "case_name": "New Test Case",
    "desc": "",
    "test_steps": [
        {
            "columnName": "",
            "data": "https://www.google.com/search?q=usa+time",
            "instr": "open website",
            "recorderData": "",
            "stepId": "",
            "xpath": ""
        },
        {
            "columnName": "",
            "data": "london",
            "instr": "enter text",
            "recorderData": "",
            "stepId": "",
            "xpath": ""
        }
    ]
}

Response Body

{
    "JSON": {
        "testCaseId": 4670,
        "testCaseName": "New Test Case",
        "createdTime": "2020-03-31T15:01:00.960348605Z",
        "discoveryId": 402,
        "testCaseLoc": "http://minio/[resource_uri]",
        "projectName": "",
        "disabledStatus": false,
        "status": 0,
        "statusMessage": "",
        "testScripts": [],
        "tags": null,
        "lastRun": "0001-01-01T00:00:00Z",
        "totalTime": 0,
        "isGenerating": false,
        "desc": "",
        "reportUrl": "",
        "testDatas": null,
        "ordinal": 0,
        "numberOfTestSteps": 271
    }
}

See also

Clone this wiki locally