# 说明
获取测试计划整体bug情况
# url
https://api.tapd.cn/test_plans/result_relation_bugs
# 支持格式
JSON/XML(默认JSON格式)
# HTTP请求方式
GET
# 请求数限制
一次获取一条测试计划的关联bug情况
# 请求参数
字段名 | 必选 | 类型及范围 | 说明 | 特殊规则 |
---|---|---|---|---|
id | 是 | integer | 测试计划ID | |
workspace_id | 是 | integer | 项目ID |
# 调用示例及返回结果
# 获取测试计划关联bug
# curl 使用 Basic Auth 鉴权调用示例
curl -u 'api_user:api_password' 'https://api.tapd.cn/test_plans/result_relation_bugs?id=1010158231077224799&workspace_id=10158231'
# 返回结果
{
"status": 1,
"data": [
{
"id": 1020357849077231365,
"name": "用例2",
"tcase_result_relate_bugs": {
"1020357849000703497": {
"id": "1020357849000703497",
"executed_at": "2020-03-05 10:15:22",
"executor": "jeffjffang",
"result_status": "no_pass",
"result_remark": null,
"bug_id": [
"1020357849500646067"
],
"Bug": [
{
"id": "1020357849500646067",
"title": "【示例】缺陷1",
"severity": "serious",
"priority": "high",
"status": "接受/处理"
}
]
}
}
},
{
"id": 1020357849077231363,
"name": "用例1",
"tcase_result_relate_bugs": {
"1020357849000703483": {
"id": "1020357849000703483",
"executed_at": "2020-03-04 17:29:29",
"executor": "jeffjffang",
"result_status": "pass",
"result_remark": null,
"bug_id": [
"1020357849500655643",
"1020357849500655855"
],
"Bug": [
{
"id": "1020357849500655643",
"title": "1231",
"severity": "",
"priority": "",
"status": "新"
},
{
"id": "1020357849500655855",
"title": "用例失败bug关联",
"severity": "",
"priority": "",
"status": "新"
}
]
}
}
}
],
"info": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
← 获取测试用例数量 获取测试计划测试结果 →