# test_video_summary **Repository Path**: Lewis3/test_video_summary ## Basic Information - **Project Name**: test_video_summary - **Description**: 对 视频总结系统 的测试。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-11 - **Last Updated**: 2025-09-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### README.md # 视频摘要测试项目 这是一个用于测试视频摘要功能的项目,主要包含测试脚本和相关配置文件。 ## 项目结构 - `reports/` - 存放测试报告文件。 - `test_data/` - 包含测试用的视频文件。 - `tests/` - 包含测试脚本: - `test_api.py` - 测试 API 接口。 - `test_frontend.py` - 测试前端 SSE 显示。 - `test_functional.py` - 测试上传和摘要功能。 - `test_performance.py` - 性能测试脚本。 ## 测试功能 - **API 测试**:验证进度和摘要接口在无效任务 ID 下的行为。 - **前端测试**:验证前端 SSE 显示功能。 - **功能测试**:测试视频上传与摘要生成流程。 - **性能测试**:模拟用户上传视频以测试系统性能。 ## 使用方法 确保已安装 Python 和相关依赖库后,可以使用 pytest 运行测试脚本: ```bash pytest tests/test_api.py pytest tests/test_frontend.py pytest tests/test_functional.py pytest tests/test_performance.py ``` 性能测试需要使用 Locust: ```bash locust -f tests/test_performance.py ``` ## 报告 所有测试报告都保存在 `reports/` 目录下,包括容器和结果文件。 ## 注意事项 - 本项目主要用于测试目的。 - 请确保测试环境已正确配置。 - 测试视频文件位于 `test_data/` 目录下。