its-gen1/test-plan/README.md

1.6 KiB

AI-Box Demo 测试目录

测试文档结构

test-plan/
├── README.md                    # 测试目录说明
├── TEST_STRATEGY.md             # 测试策略文档
├── TC_POWER_MGMT.md             # 电源管理测试用例
├── TC_MCU_SOC.md                # MCU-SoC通信测试用例
├── TC_SENSORS.md                # 传感器数据测试用例
├── TC_AUDIO_VIDEO.md            # 音视频功能测试用例
├── TC_SYSTEM_INTEGRATION.md     # 系统集成测试用例
└── automation/                  # 自动化测试
    ├── test_framework.py        # 测试框架
    ├── scripts/                 # 测试脚本
    └── reports/                 # 测试报告

测试用例汇总

模块 P0用例 P1用例 P2用例 总计
电源管理 4 3 - 7
MCU-SoC通信 4 4 1 9
传感器数据 2 5 1 8
音视频功能 4 6 - 10
系统集成 5 6 - 11
总计 19 24 2 45

运行测试

手动测试

按照各模块TC_*.md文档执行测试用例

自动化测试

# 安装依赖
pip install pytest pytest-html

# 运行全部测试
python -m pytest automation/test_framework.py -v

# 运行冒烟测试
python -m pytest automation/test_framework.py -v -m smoke

# 生成HTML报告
python -m pytest automation/test_framework.py -v --html=automation/reports/report.html

测试报告

测试报告生成路径: automation/reports/


测试工程师: 沙千里
最后更新: 2026-03-05