getTestJobResults

get

/ccadminx/v1/testJobs/{id}

Get Test Job Results. Returns the status of a given test job from the extension server.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The id of the job to return the results for. Job Id is the date time the job was created in the format of yyyyMMddHHmm.
Query Parameters
extensionName
Type: string
Required: true
The name of the extension that the test job is to be executed for.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getTestJobResults_response
Nested Schema : testResults
Type: array
An array of test results.
Nested Schema : items
Type: object
Nested Schema : failedExpectations
Type: array
An array of the failed expectations.
Nested Schema : specs
Type: array
An array of test spec result details.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : failedExpectations
Type: array
An array of the failed expectations.
Nested Schema : passedExpectations
Type: array
An array of the passed expectations.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Example application/json

[
    {
        "testResults":[
            {
                "specs":[
                    {
                        "pendingReason":"",
                        "description":"returns status code 200",
                        "fullName":"Calculate Shipping GET /v1/calculateShipping returns status code 200",
                        "passedExpectations":[
                            {
                                "stack":"",
                                "matcherName":"toBe",
                                "passed":true,
                                "message":"Passed."
                            }
                        ],
                        "id":"spec0",
                        "failedExpectations":[
                        ],
                        "status":"passed"
                    },
                    {
                        "pendingReason":"",
                        "description":"returns shippingMethods Array",
                        "fullName":"Calculate Shipping GET /v1/calculateShipping returns shippingMethods Array",
                        "passedExpectations":[
                            {
                                "stack":"",
                                "matcherName":"toBe",
                                "passed":true,
                                "message":"Passed."
                            }
                        ],
                        "id":"spec1",
                        "failedExpectations":[
                        ],
                        "status":"passed"
                    },
                    {
                        "pendingReason":"",
                        "description":"returns shippingMethods Array",
                        "fullName":"Calculate Shipping GET /v1/calculateShipping returns shippingMethods Array",
                        "passedExpectations":[
                            {
                                "stack":"",
                                "matcherName":"toBe",
                                "passed":true,
                                "message":"Passed."
                            },
                            {
                                "stack":"",
                                "matcherName":"toBe",
                                "passed":true,
                                "message":"Passed."
                            }
                        ],
                        "id":"spec2",
                        "failedExpectations":[
                        ],
                        "status":"passed"
                    }
                ],
                "description":"GET /v1/calculateShipping",
                "fullName":"Calculate Shipping GET /v1/calculateShipping",
                "id":"suite1",
                "failedExpectations":[
                ],
                "status":"finished"
            },
            {
                "specs":[
                    {
                        "pendingReason":"",
                        "description":"returns status code 200",
                        "fullName":"Hello World Server GET /v1 returns status code 200",
                        "passedExpectations":[
                            {
                                "stack":"",
                                "matcherName":"toBe",
                                "passed":true,
                                "message":"Passed."
                            }
                        ],
                        "id":"spec3",
                        "failedExpectations":[
                        ],
                        "status":"passed"
                    },
                    {
                        "pendingReason":"",
                        "description":"returns Hello World",
                        "fullName":"Hello World Server GET /v1 returns Hello World",
                        "passedExpectations":[
                            {
                                "stack":"",
                                "matcherName":"toBe",
                                "passed":true,
                                "message":"Passed."
                            }
                        ],
                        "id":"spec4",
                        "failedExpectations":[
                        ],
                        "status":"passed"
                    }
                ],
                "description":"GET /v1",
                "fullName":"Hello World Server GET /v1",
                "id":"suite2",
                "failedExpectations":[
                ],
                "status":"finished"
            }
        ],
        "extensionName":"externalShippingCalculator",
        "jobId":"201612191709",
        "status":"succeeded"
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object