Zum Hauptinhalt springen

Automation

TMT API (1.0.0)

Download OpenAPI specification:Download

API working with Automation

Export data structure

Export data structure of a project version, include Version, Test Suite, Test folder and Test case in a hierarchy. The process submit a task request to processing data asynchronously. The operation simply returns the document reference of the task request. Which you can refer to get the task status by calling Get task request

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

EXPORT_QF_DATA_STRUCTURE

required
object

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "EXPORT_QF_DATA_STRUCTURE",
  • "result": "TaskRequest-dm/129000"
}

Export data detail

Export data detail of a project version, include Version, Test Suite, Test folder and Test case. The process submit a task request to processing data asynchronously. The operation simply returns the document reference of the task request. Which you can refer to get the task status by calling Get task request

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

EXPORT_QF_DATA_DETAIL

required
object

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "jsonrpc": "2.0",
  • "id": "EXPORT_QF_DATA_STRUCTURE",
  • "result": "TaskRequest-dm/129000"
}

Create a run for automation.

Create a run for automation

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_QF_RUN

required
object

Responses

Request samples

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

Response samples

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

Download the data structure detail

Use the id from TaskRequest docRef to download the file exported from other APIs. Data is only available when the task request's status is DONE. That means you can call Get task request periodically to get the status before downloading

Authorizations:
bearerAuth
path Parameters
taskRequestId
required
string
Example: TaskRequest-dm/c2c83935-a22e-4257-ad0b-3db534e2e212

task request's document reference

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

Responses

Response samples

Content type
application/json
Example
{
  • "Project": {
    },
  • "children": [
    ]
}