test.json
5.23 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
[
{
"id": "TC-T001",
"type": "positive",
"input": "获取英国地区热门视频,maxResults=25",
"expected": "返回25条热门视频JSON,regionCode=GB",
"dimensions": {
"API调用准确性": 95,
"数据字段完整性": 90,
"多地区多分类支持": 90,
"错误处理健壮性": 90,
"输出格式正确性": 95,
"配额管理合理性": 100
},
"total_score": 93,
"note": "GB地区测试"
},
{
"id": "TC-T002",
"type": "positive",
"input": "使用videos端点获取德国技术分类",
"expected": "regionCode=DE, videoCategoryId=28",
"dimensions": {
"API调用准确性": 95,
"数据字段完整性": 90,
"多地区多分类支持": 95,
"错误处理健壮性": 90,
"输出格式正确性": 95,
"配额管理合理性": 100
},
"total_score": 94,
"note": "DE+Tech分类"
},
{
"id": "TC-T003",
"type": "positive",
"input": "API配额耗尽时启用yt-dlp降级",
"expected": "返回yt-dlp抓取的网页数据",
"dimensions": {
"API调用准确性": 85,
"数据字段完整性": 80,
"多地区多分类支持": 80,
"错误处理健壮性": 100,
"输出格式正确性": 85,
"配额管理合理性": 90
},
"total_score": 86,
"note": "yt-dlp降级测试"
},
{
"id": "TC-T004",
"type": "positive",
"input": "获取完整17字段+duration+tags",
"expected": "包含duration格式PT#M#S,tags数组",
"dimensions": {
"API调用准确性": 90,
"数据字段完整性": 100,
"多地区多分类支持": 85,
"错误处理健壮性": 85,
"输出格式正确性": 90,
"配额管理合理性": 90
},
"total_score": 91,
"note": "扩展字段测试"
},
{
"id": "TC-T005",
"type": "negative",
"input": "使用search端点获取热门视频",
"expected": "配额100 unit/次,成本过高",
"dimensions": {
"API调用准确性": 50,
"数据字段完整性": 60,
"多地区多分类支持": 60,
"错误处理健壮性": 50,
"输出格式正确性": 60,
"配额管理合理性": 10
},
"total_score": 48,
"note": "高成本端点"
},
{
"id": "TC-T006",
"type": "negative",
"input": "缺少chart=mostPopular",
"expected": "API返回400错误",
"dimensions": {
"API调用准确性": 10,
"数据字段完整性": 0,
"多地区多分类支持": 20,
"错误处理健壮性": 30,
"输出格式正确性": 20,
"配额管理合理性": 40
},
"total_score": 20,
"note": "缺少必需参数"
},
{
"id": "TC-T007",
"type": "negative",
"input": "返回数据缺少subscriberCount和channelId",
"expected": "未调用channels.list扩展",
"dimensions": {
"API调用准确性": 70,
"数据字段完整性": 30,
"多地区多分类支持": 60,
"错误处理健壮性": 60,
"输出格式正确性": 60,
"配额管理合理性": 70
},
"total_score": 52,
"note": "频道字段缺失"
},
{
"id": "TC-T008",
"type": "negative",
"input": "批量请求无速率控制",
"expected": "触发429限制",
"dimensions": {
"API调用准确性": 70,
"数据字段完整性": 70,
"多地区多分类支持": 70,
"错误处理健壮性": 20,
"输出格式正确性": 60,
"配额管理合理性": 30
},
"total_score": 53,
"note": "无速率限制"
},
{
"id": "TC-T009",
"type": "positive",
"input": "多地区批量请求优化",
"expected": "使用videos端点,批量合并,每地区1 unit",
"dimensions": {
"API调用准确性": 95,
"数据字段完整性": 90,
"多地区多分类支持": 100,
"错误处理健壮性": 90,
"输出格式正确性": 95,
"配额管理合理性": 100
},
"total_score": 95,
"note": "配额优化最佳"
},
{
"id": "TC-T010",
"type": "positive",
"input": "错误处理+降级完整链路",
"expected": "403→重试→降级yt-dlp→成功",
"dimensions": {
"API调用准确性": 85,
"数据字段完整性": 80,
"多地区多分类支持": 80,
"错误处理健壮性": 100,
"输出格式正确性": 85,
"配额管理合理性": 90
},
"total_score": 86,
"note": "错误恢复测试"
},
{
"id": "TC-T011",
"type": "negative",
"input": "无效JSON输出格式",
"expected": "JSON.parse失败",
"dimensions": {
"API调用准确性": 70,
"数据字段完整性": 70,
"多地区多分类支持": 70,
"错误处理健壮性": 60,
"输出格式正确性": 5,
"配额管理合理性": 70
},
"total_score": 58,
"note": "JSON格式错误"
},
{
"id": "TC-T012",
"type": "positive",
"input": "日本动漫分类+完整字段+降级",
"expected": "所有功能通过",
"dimensions": {
"API调用准确性": 95,
"数据字段完整性": 95,
"多地区多分类支持": 95,
"错误处理健壮性": 95,
"输出格式正确性": 95,
"配额管理合理性": 95
},
"total_score": 95,
"note": "完整功能验证"
}
]