Files
ISISeg/工程分析/测试方案-2026-05-18-19-41-29.md

28 lines
1.1 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.
# 测试方案
开始时间2026-05-18-19-41-29
## 测试项
- `bash scripts/generate_sample.sh`
- `ffprobe` 检查 `storage/samples/synthetic_guidewire.mp4` 编码。
- `pytest -q`
- `curl -s http://127.0.0.1:8001/api/health`
- `curl -s http://127.0.0.1:8001/api/samples`
- 使用样例视频调用 `/api/segment`,确认后端仍可读取视频。
## 验收标准
- 样例视频编码为 H.264 或至少返回 `codec_tag_string=avc1`
- 点击“加载样例”后左侧原始视频面板能显示视频画面。
- 分割接口仍可处理样例视频。
## 执行结果
- `bash scripts/generate_sample.sh`:通过,重新生成样例视频和样例图像。
- `ffprobe storage/samples/synthetic_guidewire.mp4`:通过,返回 `codec_name=h264``codec_tag_string=avc1``pix_fmt=yuv420p`
- `pytest -q`通过4 个测试全部通过。
- `/api/samples`:通过,返回新的样例视频大小 `638484` 字节。
- `/api/segment` 使用新样例视频:通过,返回 `job_id=da013f73c636` 和 3 帧分割结果。
- `git diff --check`:通过,无空白格式错误。