Back to QMetry All Products Help Page
Server/DC: How to Import Test Results into specific Tests folders via Rest API?
This article explains how users can import their automated test results into specific Test Cases/ Test Cycle folders. Please follow the below-mentioned steps:
Step 1: Fetch the name of the Folder and sub-folders into which the user wants to import the test results (Test Cycle/Test Cases).
Step 2: Mention the name of the folder and subfolder in the supported JSON format in the Raw payload, as shown in the below example:
{
"format":"cucumber",
"testCycleToReuse":"TR-PRJ-1",
"attachFile":true,
"isZip":false,
"fields":{
"testCycle":{
"folderPath":"Folder1/Folder2/Folder3"
},
"testCase":{
"folderPath":"Folder1/Folder2/Folder3"
}
}
}
Step 3: After configuring the JSON fields, follow the common steps to import the test results in QTM4J by referring to this help documentation.
Step 4: Check the imported Test cycle and Test cases folders from QTM4J Menu> Test Management > Test Case folders/ Test Cycle folders.
Sample Collection: Refer to the below-attached postman collection that has configured sample ‘JSON fields’:
The content of this article is only applicable to QTM4J Server/DC version. In the QTM4J Cloud version users can use OPEN APIs to change the folders of the imported Test Cases or Test Cycles.
For any further queries, please contact QMetry Support.
Back to QMetry All Products Help Page