Zum Hauptinhalt springen
Version: TMT v5 (latest)

Folder

TMT API (1.0.0)

Download OpenAPI specification:Download

API working with Test folders in TMT

Get test folder detail

Get a test folder document by its document reference using the GET_TMT_DOCUMENT operation.

Authorizations:
bearerAuth
Request Body schema: application/json
required
Array
id
required
string

id of the operation

jsonrpc
required
string

must be 2.0

method
required
string

GET_TMT_DOCUMENT

required
object

Responses

Request samples

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

Response samples

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

List test folders

  • List test folder and test cases documents for given search criteria. Please filter the test folders document only by yourself. In the next release, we will provide another operation to get all folder documents only
  • Notice: QUERY operation provides the flexibility to the caller, so they can customize their search criteria. But it requires the basic understanding on the search object to get the proper result. For the test folders, it is worthy to put the attention on your search criteria. To filter out the documents are frozen by a closed run, please add this NOT operator:
       {
          "operator": "not",
          "operand": {
            "operator": "exact_match",
            "field": "/Root/Metadata/IsFrozenByClosedTestRun",
            "value": "true"
          }
       }
    
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

LIST_DOCUMENT

required
object

Responses

Request samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "query-test-folders",
  • "method": "QUERY",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "query-test-folders",
  • "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
}