Get Test Suites folder/sub-folder list

QMetry 7QMetry 8
  • URL: /rest/testsuites/tree
  • Method: GET
  • URL: /rest/testsuites/tree
  • Method: POST

Request Header:

  • cookie: tsSortTreeColumn=name; tsSortTreeDir=ASC
  • content-type: application/json
  • scope: <ProjectID>:<ReleaseID>:<CycleID>
  • accept: application/json
  • usertoken:

Query Params:

  • showEntity: false
  • showStatus: false
  • hideFolders: false
  • node: <Folder ID of the test suites>

Request Header:

  • content-type: application/json
  • scope: <ProjectID>:<ReleaseID>:<CycleID>
  • accept: application/json
  • apiKey:
  • orgcode:


Request Body
{
	"tsFolderID":101351,
	"hideFolders":false
}
Response Body
[
    {
        "id": 121482,
        "name": "Folder A",
        "createdDate": "Wed Jul 17 11:13:22 UTC 2019",
        "isFolder": true,
        "leaf": false,
        "expandType": "ts_folder",
        "folderPath": "/Parent Folder/Folder A",
        "folderStatus": "uncovered",
        "expanded": true,
        "loaded": true,
        "inherited": {
            "testSuiteState": "394403",
            "owner": ""
        }
    }
]
Response Body
{
    "data": [
        {
            "id": 101827,
            "name": "Folder A",
            "hasChildren": 0,
            "isArchived": false
        },
        {
            "id": 101352,
            "name": "Basic Test",
            "hasChildren": 0,
            "isArchived": false
        }
    ],
    "total": 2
}