Info | ||
---|---|---|
| ||
Please look at Sample projects and Code snippets sections for a more concrete end-to-end example. |
...
Method : POST
REQUEST HEADER :
Content-Type : application/json
{generated-api-key}
Notes
- 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:
| 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-
| 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 |
...
Supported Fields | Type | Test Cycle | Test Case | Default | Comment |
---|---|---|---|---|---|
labels | array | Yes | Yes | null | |
components | array | Yes | Yes | null | |
status | string | Yes | Yes | TO DO | |
priority | string | Yes | Yes | Medium | |
fixVersionId | number | Yes | Yes | null | |
sprintId | number | Yes | Yes | null | |
summary | string | Yes | No | Automated Test Cycle | |
description | string | Yes | Yes | null | |
precondition | string | No | Yes | null | |
assignee | string | Yes | Yes | Account Id of current User | Valid User Account Id |
reporter | string | Yes | Yes | Account Id of current User | Valid User Account Id |
estimatedTime | string | No | Yes | null | Pass time in ‘HH:mm’ format |
plannedStartDate | string | Yes | No | null | Pass date in 'dd/MMM/yyyy HH:mm' format |
plannedEndDate | string | Yes | No | null | Pass date in 'dd/MMM/yyyy HH:mm' format |
customFields | array | Yes | Yes | null |
|
...
Code Block |
---|
{ "format": "cucumber", "testCycleToReuse": "", "attachFile": true, "isZip": false, "environment": "", "build": "", "fields": { "testCycle": { "labels": [ "label1", "label2" ], "components": [ "component1" ], "priority": "High", "status": "To Do", "sprintId": "", "fixVersionId": "", "summary": "Test Cycle Summary Automation", "description": "Test Cycle Automation Description", "assignee": "557058:b50b7a9b-8826-4769-97c8-3338b8ba7f22", "reporter": "557058:416340c9-0308-4f49-a538-c9f5b164242d", "plannedStartDate": "15/May/2020 00:00", "plannedEndDate": "30/May/2020 00:00", "customFields": [{ "name": "Multi Check Box", "value": "MCB 1,MCB 2" }, { "name": "Date Type", "value": "29/May/2020" }, { "name": "Date time", "value": "29/May/2020 14:55" }, { "name": "Multi DropDown", "value": "MDD 2,MDD 1" }, { "name": "Multi line text field", "value": "QMetry Automation Testing using cucumber framework " }, { "name": "Number field", "value": 1234567890 }, { "name": "Single DropDown", "value": "DD2" }, { "name": "Single line field", "value": "QMetry Automation Testing using cucumber framework" }, { "name": "Single Radio Button", "value": "Test C" } ] }, "testCase": { "labels": [ "label1", "label2" ], "components": [ "component1" ], "priority": "High", "status": "To Do", "sprintId": "", "fixVersionId": "", "description": "Automated generated Test Case", "precondition": "Precondition of Test Case", "assignee": "557058:b50b7a9b-8826-4769-97c8-3338b8ba7f22", "reporter": "557058:416340c9-0308-4f49-a538-c9f5b164242d", "estimatedTime": "10:10", "customFields": [{ "name": "TC Multi DropDown", "value": "Automation 1,Automation 2" }, { "name": "QA User RadioButton", "value": "Sample user 2" } ] } } } |
...
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
| ||||||
| Returned if import fails If unsupported framework is sent in request
If zip file is not sent in QAF framework request
If one or more fields have invalid value
|
...
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
Signature Mismatch
|
...
This API is used to check the progress of automation result import.
GET
application/json
apiKey : Get API Key
Responses
Response | Description | ||
---|---|---|---|
SUCCESS | Returned if parameters are validated successfully. Example
| ||
FAILED | Returned if any validation fails Example
|
...