Files
a-share-analysis/docs/features/FEAT-MO-004-index-sector-detail/test-plan.md
T

26 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# FEAT-MO-004 测试计划与结果
## 测试范围
- Mapper:日期排序、非法行过滤、数量上限、缺失成交字段和涨跌幅计算。
- Service:指数/板块成功、目录校验、延迟、部分数据、不可用和超时脱敏。
- HTTP:两个详情路由、代码格式、周期和数量参数、OpenAPI 响应结构。
- Web:Axios API 路径、路由加载、上海时间、空/错误/延迟状态、K 线 SVG 和移动端布局。
## 安全验证
已验证非法代码不会触发 TDX;`count` 只接受 1-120;页面和 HTTP 响应不包含 `ErrorId`、TDX 地址或原始异常;分时协议未通过时 `intraday=false`。未执行交易、账户、自选或写入接口。
## 性能验证
详情服务固定最多 120 个 K 线点,真实开发 TDX 日 K 线请求观测约 47-56ms;SVG 图表固定 `viewBox=0 0 720 260`,390px 视口 `documentElement.scrollWidth=390`,无横向溢出。该证据仅代表本机开发环境,不代表生产容量。
## 自动化结果
- Web:12 个测试文件、34 个测试通过。
- Server:18 个测试文件、94 个测试通过。
- 根级治理、契约、边界、部署和 Schema 测试全部通过。
- Playwright:桌面/移动应用冒烟和 API 健康契约共 4 个测试通过。
- Web/Server typecheck、生产构建和 Prettier 检查通过;lint 无 error,保留既有 Vue 格式 warning。