Files
Pre_Seg_Server/工程分析/测试方案-20260429_231526.md

29 lines
940 B
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-04-28
## 测试环境
- 浏览器 Chrome / Edge开发者工具 Console 面板开启
- React StrictMode 已启用Vite 默认)
## 测试用例
### TC1 — 上传字段正确性
1. 进入项目库页面
2. 选择任意文件(图片/视频)上传
3. 观察浏览器控制台
4. **预期**: 打印 `上传成功: <URL>`,无 `undefined`
### TC2 — 项目列表刷新
1. 清空项目库(如有)
2. 上传文件
3. **预期**: 项目卡片出现,状态为 "待处理",文件名正确
### TC3 — WebSocket 生命周期
1. 打开 Dashboard 页面
2. 观察 Console切换至项目库再切回 Dashboard
3. **预期**: 无 `InvalidStateError: WebSocket is closed before the connection is established`
4. Network 面板 WS 标签应显示正常连接/关闭
### TC4 — 反复挂载卸载
1. 在 Dashboard 页面快速刷新 3 次
2. **预期**: 每次均正常建立 WS 连接,无残留报错