Skip to main content

Test Suite

TMT API (1.0.0)

Download OpenAPI specification:Download

API working with Test suites in TMT

Get test suite detail

Get content of a test suite by given test suite 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-10",
  • "params": {
    }
}

Response samples

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

Add test suite

Add a new test suite

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

ADD_DOCUMENT

required
object

Responses

Request samples

Content type
application/json
{
  • "id": "ADD_TEST_SUITE",
  • "method": "ADD_DOCUMENT",
  • "params": {
    }
}

Response samples

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

List test suites

List of test suites for given project version

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
any

LIST_TEST_SUITES

required
object

Responses

Request samples

Content type
application/json
{
  • "id": "TestSuites.DataProvider-12",
  • "jsonrpc": "2.0",
  • "method": "LIST_TEST_SUITES",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "TestSuites.DataProvider-12",
  • "result": {
    }
}

Update test suite

Update content of a test suite

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": "MODIFY_TEST_SUITE",
  • "method": "MODIFY_DOCUMENT",
  • "params": {
    }
}

Response samples

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

Delete a test suite

Trigger a task request to delete an existing test suite. Task request will then run on background
You can call Get task request periodically to get the task's status

Notice: A test suite is only deleted if it is not in any open test 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_TEST_SUITE

required
object

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "delete_test_suite_operation_id_1",
  • "result": "OK"
}

Get test suites in a test run

Return all test suites that are in a test 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

GET_TEST_SUITES_IN_RUN

required
object

Responses

Request samples

Content type
application/json
{
  • "id": "TestSuites.DataProvider-98",
  • "jsonrpc": "2.0",
  • "method": "GET_TEST_SUITES_IN_RUN",
  • "params": {
    }
}

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "TestSuites.DataProvider-98",
  • "result": {
    }
}