Back to QMetry All Products Help Page
Add attachments on Test Case API example
Step 1- Generate policy for the Test Case.
Method: GET
URL: https://qtmcloud.qmetry.com/rest/api/latest/testcases/attachments/url
Query Parameter:
projectId:
fileName:
testCaseId:
versionNo:
Request Header
<Response>
Success 200
Copy the highlighted output of the API.
Step 2- Uploading attachment using the generated Test Case policy.
API URL: https://qtm4j-cloud-prod-4.s3.amazonaws.com
Method: POST
Request Header:
Body: Form data
Paste the copied output in the Body section
Additionally, kindly import the postman collection given below and edit the fields accordingly.
Back to QMetry All Products Help Page