更新时间:2025-04-08 GMT+08:00
分享

查询工程集

功能介绍

查询工程集

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /v1/{project_id}/test-suites

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

表示项目ID,参见获取方法说明

表2 Query参数

参数

是否必选

参数类型

描述

offset

Integer

查询偏移

limit

Integer

查询数量

请求参数

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

code

String

状态码

message

String

描述

projects

Array of ProjectsSet objects

工程集详细信息

表4 ProjectsSet

参数

参数类型

描述

CreateTime

String

创建时间

UpdateTime

String

更新时间

description

String

描述

id

Integer

工程ID

name

String

工程名字

source

Integer

工程来源 0:PerfTest,2:CloudTest

external_params

Object

外部参数

variables_no_file

Array of strings

文件变量

状态码:501

表5 响应Body参数

参数

参数类型

描述

-

String

response message

请求示例

查询工程列表

/v1/{project_id}/test-suites&offset=1&limit=10

响应示例

状态码:200

success

{
  "code" : "CPTS.00000000",
  "message" : "success",
  "projects" : [ {
    "id" : 1,
    "name" : "name",
    "description" : "description",
    "variables_no_file" : [ ],
    "CreateTime" : "2021-07-12T14:41:51+08:00",
    "UpdateTime" : "2021-07-12T14:41:51+08:00",
    "source" : 0,
    "external_params" : { }
  } ]
}

状态码

状态码

描述

200

success

501

unknown error

错误码

请参见错误码

相关文档