zip file must contain files of same format given in the 'format' param.
Request must be contains json raw body payload, form-data is not supported.
...
Parameter
Type
Required
Description
Default
format
string
Yes
Format of result file to be imported. Supported formats:
CUCUMBER
TESTNG
JUNIT
QAF
HPUFT
SPECFLOW
NA
testCycleToReuse
string
No
Issue Key of the test cycle to be reused
NA
environment
string
No
Name of the environment on which test cycle has to be executed
No Environment
build
string
No
Name of the build for test case execution
Blank
isZip
boolean
No (Yes for QAF)
Pass true for ZIP upload or pass false for single file upload
false
attachFile
boolean
No
Pass true to upload attachments in execution. For more details, Refer automation help documents.
This parameter is supported only for-
QAF
Cucumber
false
fields
JSON
No
Provide additional fields to be added on test case or test cycle level. Refer to following table for more.
Note : If cycle is reused, fields of test cycle will be ignored.
Blank
...
Responses
Response
Description
STATUS 200
Returned if results file is uploaded successfully. The import process might take a while and you would be notified (by email or checking the status of the created test run) once the process completed.
Example
Code Block
{
"url":"https://qtmcloud.qmetry.com/automationuploads/1560145450482_f52a7866-a345-4cad-b93e-a930135868d7.json?X-Amz-Algorithm=AWS4-HMACSHA256&X-Amz-Date=20190610T054410Z&X-Amz-SignedHeaders=.....",
"message": "Generated Upload URL is valid for one time use and will expire in 5 minutes.",
"trackingId": "f52a7866-a345-4cad-b93e-a930135868d7"
}
STATUS 400
Returned if import fails
If unsupported framework is sent in request
Code Block
{
"status":400,
"errorMessage":"Framework ‘xyz’ is not supported.",
"timestamp":"28/May/2019 04:58"
}
If zip file is not sent in QAF framework request
Code Block
{
"status":400,
"errorMessage":"Zip file format is required for QAF framework.",
"timestamp":"28/May/2019 05:00"
}
If one or more fields have invalid value
Code Block
{
"status":400,
"errorMessage":"Validation failed for fields.",
"errors":[
"TestCase Components c1,c2 could not be found.",
"TestCase Labels l1,l2 could not be found."
],
"timestamp":"29/May/2019 12:44"
}
...
Responses
Response
Description
STATUS 200
Returned if file is uploaded successfully.
STATUS 403
Returned if file upload happens after URL expiration time or if Content-type=multipart/form-data header is not passed
Example
URL Expiry
Code Block
<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<Expires>2017-02-27T12:34:11Z</Expires>
<ServerTime>2017-02-27T13:40:54Z</ServerTime>
<RequestId>3BCFE62FDD8F60D8</RequestId>
<HostId>MXrdoCzy/BK2BdFdNFn613xa6jKegQpVpSzsC4CQhkk46f7Na+ImafoFHlN90FF2LiuupDr5x9U=</HostId>
</Error>
Signature Mismatch
Code Block
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
<Expires>2017-02-27T12:34:11Z</Expires>
<StringToSign>PUT ...</StringToSign>
<SignatureProvided>cijMZITZJuv8r5mvgqksssPcV5M=</SignatureProvided>
<StringToSignBytes>50 55 ...</StringToSignBytes>
<RequestId>cijMZITZJuv8r5mvgqksssPcV5M=</RequestId>
<HostId>MXrdoCzy/BK2BdFdNFn613xa6jKegQpVpSzsC4CQhkk46f7Na+ImafoFHlN90FF2LiuupDr5x9U=</HostId>
</Error>
...
This API is used to check the progress of automation result import.
{
"format":"QAF",
"fileName":"1558945546874_840ba1e3-bf14-4f08-b19c-e5de6447711b.zip",
"processStatus":"VALIDATION/PARSING/CREATING_ASSETS/SUCCESS",
"importStatus":"FAILED",
"startTime":"2019-05-27T08:25:47.000+0000",
"endTime":null,
"fileSize":1500,
"trackingId":"840ba1e3-bf14-4f08-b19c-e5de6447711b",
"files":[
],
"detailedMessage":"{some detail message about current status of file}"
}