Zum Hauptinhalt springen

Folder

TMT API (1.0.0)

Download OpenAPI specification:Download

API working with Test folders in TMT

Get test folder detail

Get content of a test folder by given document reference

Authorizations:
bearerAuth
header Parameters
Project-Id
required
string

Project Id or the project document reference

Subproject-Id
string

Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource

Request Body schema: application/json
required
id
required
string

id of the operation

jsonrpc
required
string

must be 2.0

method
required
string

GET_DOCUMENT

required
object

Responses

Request samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "method": "GET_DOCUMENT",
  • "id": "GET_DOCUMENT-50",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "GET_DOCUMENT-50",
  • "result": {
    }
}

Create a new test folder

Create a new test folder and add it into a test case tree.
The new test folder will be located at the end of the folder (or the test suite if it is at the root level)

Authorizations:
bearerAuth
header Parameters
Project-Id
required
string

Project Id or the project document reference

Subproject-Id
string

Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource

Request Body schema: application/json
required
id
required
string

id of the operation

jsonrpc
required
string

must be 2.0

method
required
string

CREATE_TEST_CASE_TREE_NODE

required
object

Responses

Request samples

Content type
application/json
{
  • "id": "addTestFolder_d471998c-cfdf-432c-9e9b-a449713e2ce6",
  • "method": "CREATE_TEST_CASE_TREE_NODE",
  • "jsonrpc": "2.0",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "addTestFolder_d471998c-cfdf-432c-9e9b-a449713e2ce6",
  • "result": {
    }
}

Update test folder

Update test folder content

Authorizations:
bearerAuth
header Parameters
Project-Id
required
string

Project Id or the project document reference

Subproject-Id
string

Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource

Request Body schema: application/json
required
id
required
string

id of the operation

jsonrpc
required
string

must be 2.0

method
required
string

MODIFY_DOCUMENT

required
object

Responses

Request samples

Content type
application/json
{
  • "id": "modifyTestFolder_7ed09ca9-955b-43be-9aa4-95afd8e9d20c",
  • "method": "UPDATE_TEST_CASE_TREE_NODE",
  • "jsonrpc": "2.0",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "modifyTestFolder_7ed09ca9-955b-43be-9aa4-95afd8e9d20c",
  • "result": {
    }
}

Delete a test folder

Delete a test folder and its content. All test cases within test folder must not be in any open run.

Authorizations:
bearerAuth
header Parameters
Project-Id
required
string

Project Id or the project document reference

Subproject-Id
string

Sub Project Id or the project document reference. It might be required if you want to access the sub project's resource

Request Body schema: application/json
required
id
required
string

id of the operation

jsonrpc
required
string

must be 2.0

method
required
string

DELETE_DOCUMENT

required
object

Responses

Request samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "DELETE_FOLDER_01",
  • "method": "DELETE_FOLDER",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "DELETE_FOLDER_01",
  • "result": null
}