HTTP/HTTPS
Protocol
YesDev / Platform API / 获取测试计划详情接口
获取测试计划详情接口
API Url:http://pre.www.yesdev.cn/api/platform.php?s=Platform.TestPlan_TestPlan.GetTestPlanDetails
API Description: 获取测试计划详情接口
API Parameters
Parameter Name | Type | Is Required | Default | Note | Description |
---|---|---|---|---|---|
access_token | 字符串 | Optional | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
app_key | 字符串 | Optional | app_key,团队代码 | ||
sign | 字符串 | Optional | - | 动态签名,签名算法请联系我们技术客服获取 | |
id | 整型 | Required | - | 测试计划id | |
case_sort_field | 枚举类型 | Optional | id | range: id/run_status/title/test_level/update_run_staff_id | 排序的字段,id=默认排序,run_status为执行结果,test_level为用例优先级,update_run_staff_id为执行人 |
case_sort_type | 枚举类型 | Optional | asc | range: asc/desc | 排序类型:asc升序,desc降序 |
Return Field
Response Result | Type | Description |
---|---|---|
ret | int | status code, 200 is ok, 4xx is bad request, 5xx is server inside error |
data | object/mixed | business data, decided by API implementation |
msg | string | message, usually error message |
Test Online
Parameter | Is Required | Value |
---|---|---|
service | Required | |
access_token | Optional | |
app_key | Optional | |
sign | Optional | |
id | Required | |
case_sort_field | Optional | |
case_sort_type | Optional |
Client Request Demo
{
"ret": 200,
"data": {
"id": 1,
"title": "哈哈哈1", //标题
"test_plan_desc": "1111111111", //描述
"start_time": "0000-00-00 00:00:00", //开始时间
"end_time": "2020-07-02 00:00:00", //结束时间
"plan_status": 100,
"project_id": 720,
"project_name": "团队组建", //项目名称
"assign_staff_id": 49,
"assign_staff_name": "黄俊华", //负责人名称
"plan_status_name": "状态", //计划状态
"test_plan_rate": { //测试计划进度信息
"wait_test": 0, //等待个数
"pass_test": 1, //通过个数
"ignore_test": 0, //忽略个数
"not_pass_test": 0, //不通过个数
"block_test": 0, //阻塞次数
"total": 1, //总数
"rate": "100.00" //百分比
},
"problem_count": { //问题统计---使用参照项目详情
"problem_status_wait": 1,
"problem_status_fixing": 0,
"problem_status_reopen": 0,
"problem_status_fixed": 0,
"problem_status_delay": 0,
"problem_status_ignore": 0,
"problem_status_closed": 0,
"problem_total": 1,
"problem_finish": 0,
"problem_percent": 0
},
"test_case_list": [ //测试用例列表
{
"id": 1, //测试计划用例id
"test_plan_id": 1, //测试计划id
"test_case_id": 1, //测试用例id
"run_status": 200, //运行状态
"run_nums": 1, //运行次数
"update_run_staff_id": 49, //执行人id
"test_case_title": "哈哈哈1", //测试用例名称
"test_level": 100, //测试等级
"test_status": 100, //测试状态
"update_run_staff_name": "黄俊华", //执行人名称
"run_status_name": "通过", //运行状态中文名
"test_level_name": "P0", //测试等级中文名
"test_status_name": "草稿" //测试状态中文ming
}
],
"test_case_total": 1 //测试用例总数
},
"msg": ""
}
Error List
Error Status | Error Description |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
410 | 权限不足 |
500 | 表示服务端内部错误 |
Last generated at: 2025-08-03 17:30:16 联系我们开通接入OpenAPI