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

35 lines
1.3 KiB
Markdown
Raw Permalink 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-20-18-20
## 自动化测试
- `python3 -m compileall backend tests`
- `node --check frontend/app.js`
- `pytest -q`
## 接口验证
- 使用样例视频调用 `/api/segment`
- 检查返回的 `duration``result_duration` 基本一致。
- 检查返回的 `source_fps``result_fps` 一致。
- 使用 `ffprobe` 检查生成结果视频时长接近 6 秒。
## 浏览器验证
- Chrome headless 打开页面。
- 点击“加载样例”并运行分割。
- 检查左侧原始视频和右侧结果视频均能加载出画面。
- 检查两个视频 `duration` 接近一致。
- 检查拖动源视频后结果视频跳到相同时间点,反向也一致。
## 执行结果
- `python3 -m compileall backend tests`:通过。
- `node --check frontend/app.js`:通过。
- `pytest -q`5 passed。
- 样例视频调用 `/api/segment`:返回 `duration=6.0``result_duration=6.0``source_fps=12.0``result_fps=12.0`
- `ffprobe storage/jobs/4cc4901e30e9/fusion_overlay.mp4`H.264、yuv420p、12fps、72 帧、6 秒。
- Chrome headless 页面流程:左侧视频 `duration=6`,右侧结果视频 `duration=6`12 个结果帧正常出现。
- Chrome headless 同步验证:源视频 seek 到 2.25 秒后结果视频为 2.25 秒;结果视频 seek 到 4.5 秒后源视频为 4.5 秒。