[ { "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": "完整功能验证" } ]