Files
Pre_Seg_Server/工程分析/测试方案-2026-04-29-22-49-38.md

48 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-04-29-22-49-38
## 对应实现方案
- 实现方案文档: `实现方案-2026-04-29-22-49-38.md`
## 测试范围
- WebSocket 连接可达性
- 文件导入按钮交互
- 项目状态显示正确性
## 测试用例
### 用例 1: WebSocket 连接测试
- **前置条件**: 前后端均运行
- **操作步骤**:
```bash
curl -s -N -H "Connection: Upgrade" -H "Upgrade: websocket" \
-H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \
-H "Sec-WebSocket-Version: 13" \
http://192.168.3.11:8000/ws/progress
```
- **预期结果**: 返回 101 Switching Protocols
- **通过标准**: HTTP 101连接建立
### 用例 2: 文件导入按钮交互验证(浏览器)
- **前置条件**: 前端运行
- **操作步骤**:
1. 打开项目库页面
2. 点击"导入多媒体资源"按钮
- **预期结果**: 弹出系统文件选择器
- **通过标准**: 文件选择器出现,支持选择视频/图片
### 用例 3: 新建项目状态显示
- **前置条件**: 后端运行
- **操作步骤**:
1. 创建新项目
2. 查看项目卡片状态标签
- **预期结果**: 状态显示为"已就绪"(绿色)
- **通过标准**: 非"异常"(红色)
## 回归测试
- [ ] localhost 开发方式不受影响
- [ ] 现有项目列表加载正常
## 测试环境
- 浏览器: Chrome
- 访问地址: http://192.168.3.11:3000