This array contains JSON object which has name and value property.
name property represents name of custom field, user can get it from custom fields screen inside configuration menu.
value property represents value of custom field.
For Date type custom field, pass value in 'dd/MMM/yyyy' format.
For DateTime type custom field, pass value in 'dd/MMM/yyyy HH:mm' format.
For Number type custom field, pass any numeric value
For Single option custom field like Radio button, Single Dropdown etc, pass option value as string. Ex. 'high'
For Multi options custom field like Checkbox, Multi Dropdown etc, pass the value as a comma-separated string. Ex. 'high,medium,low'
For Single User picker type custom field, pass Jira Account Key of the user and For Multi-User picker, pass a comma-separated Jira Account Key of users.
For Labels type custom field pass value as comma separated string. Ex. 'tag1,tag2'
For Cascade type custom field, Pass two level of values. "value" node represents Level 1 dropdown option and cascadeValue node represents Level 2 dropdown option. Ex. "value": "option1", "cascadeValue": "option1_A"
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://{{jira base url}}/rest/qmetry/automation/latest/importresult/submitFile?trackingId=3d19c19d-935c-4d08-b3de-74a38b5042a0",
"trackingId": "3d19c19d-935c-4d08-b3de-74a38b5042a0"
}
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": "The supplied fields are invalid",
"errors":[
"Provided Component Name(s) xyz not found ",
"Provided Label Name(s) xyz not found"
],
"timestamp":"29/May/2019 12:44"
}
...
Content-Type : multipart/form-data
{generated-api-key}
Basic ZnJlZDpmcmVk
Request Body - Binary : Your result file to be uploaded. Supported file extensions: .json, .xml and .zip (zip file must contain files of the format given in the 'format' param).
...
Responses
Response
Description
STATUS 204
Returned if the file is uploaded successfully.
2.3 See Progress
This API is used to check the progress of automation result import.
...
GET
application/json
apiKey :{generated-api-key}
: Basic ZnJlZDpmcmVk
Responses
Response
Description
STATUS 200
Returned if parameters are validated successfully.
{
"status":404,
"errorMessage":"No import details found for given tracking id '840ba1e3-bf14-4f08-b19c-e5de6447711b'",
"timestamp":"02/Apr/2020 16:19"
}