更新时间:2025-04-08 GMT+08:00
查询工程集
功能介绍
查询工程集
URI
GET /v1/{project_id}/test-suites
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
表示项目ID,参见获取方法说明。 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
offset |
否 |
Integer |
查询偏移 |
|
limit |
否 |
Integer |
查询数量 |
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
code |
String |
状态码 |
|
message |
String |
描述 |
|
projects |
Array of ProjectsSet objects |
工程集详细信息 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
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
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
- |
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 |
错误码
请参见错误码。
父主题: PerfTest工程管理