getTestStatus
get
/ccadmin/v1/testStatus/{id}
Get Test Status. Returns the status of a given test job from the extension server.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The id of the job to return the status of. Job Id is the date time the job was created in the format of yyyyMMddHHmm.
Query Parameters
-
environmentType: string
It specifies the environment where operation needs to be performed. Default value is live. (value: preview or live)
-
extensionName(required): string
The name of the extension that the test job was executed against.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getTestStatus_response
Type:
Show Source
object
-
completed:
boolean
Flag indicating whether or not the job has completed or not.
-
completedPercentage:
integer
The progress of the job represented as a percentage.
-
endTime:
string
The time that the job completed.
-
intervalToPoll:
integer
The number of milliseconds to wait before polling the status of the job again.
-
links:
array links
An array of test status links.
-
message:
string
Human readable message about the current processing status.
-
progress:
string
The current progress of the job.
-
requestStatus:
integer
The status of the request the requested the job execution.
-
startTime:
string
The time that the job was started.
Nested Schema : items
Type:
Show Source
object
-
href:
string
Link to the resource.
-
rel:
string
The relationship the link has to the resource.
Example Response (application/json)
{
"completedPercentage":100,
"intervalToPoll":250,
"progress":"succeeded",
"startTime":"2016-12-20T09:25:11.559Z",
"links":[
{
"rel":"self",
"href":"/ccadminx/custom/v1/testStatus/201612200925?extensionName=externalShippingCalculator"
},
{
"rel":"related",
"href":"/ccadminx/custom/v1/testJobs/201612200925?extensionName=externalShippingCalculator"
}
],
"completed":true,
"endTime":"2016-12-20T09:25:11.788Z",
"message":"Job completed successfully.",
"requestStatus":202
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code