Details
-
Story
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
R3.1.0 S2
-
Description
The REST API should provide a GET operation for obtaining a list of folders contained in the Test Repository associated with a given project key.
GET /rest/raven/1.0/api/testrepository/<projectKey>/folders
The answer should contain all folders, each one represented by its full path name (e.g. "regression/UI").
Example:
//Folder list by projectKey: /rest/raven/1.0/api/testrepository/FP/folders { "folders": [ { "id": 6, "rank": 1, "name": "Folder1", "testRepositoryPath": "/Folder1" "folders": [], "testCount": 0, "totalTestCount": 0 }, { "id": 7, "rank": 2, "name": "Folder2", "testRepositoryPath": "/Folder2", // ?? "folders": [ { "id": 8, "rank": 1, "name": "Sub2", "testRepositoryPath": "/Folder2/Sub2", "folders": [], "testCount": 1, "totalTestCount": 1 }, { ... } ], "testCount": 0, "totalTestCount": 3 } ], }