Features: - Backend statistics API (cloud-native Prisma aggregation) - Results page with hybrid solution (AI consensus + human final decision) - Excel export (frontend generation, zero disk write, cloud-native) - PRISMA-style exclusion reason analysis with bar chart - Batch selection and export (3 export methods) - Fixed logic contradiction (inclusion does not show exclusion reason) - Optimized table width (870px, no horizontal scroll) Components: - Backend: screeningController.ts - add getProjectStatistics API - Frontend: ScreeningResults.tsx - complete results page (hybrid solution) - Frontend: excelExport.ts - Excel export utility (40 columns full info) - Frontend: ScreeningWorkbench.tsx - add navigation button - Utils: get-test-projects.mjs - quick test tool Architecture: - Cloud-native: backend aggregation reduces network transfer - Cloud-native: frontend Excel generation (zero file persistence) - Reuse platform: global prisma instance, logger - Performance: statistics API < 500ms, Excel export < 3s (1000 records) Documentation: - Update module status guide (add Week 4 features) - Update task breakdown (mark Week 4 completed) - Update API design spec (add statistics API) - Update database design (add field usage notes) - Create Week 4 development plan - Create Week 4 completion report - Create technical debt list Test: - End-to-end flow test passed - All features verified - Performance test passed - Cloud-native compliance verified Ref: Week 4 Development Plan Scope: ASL Module MVP - Title Abstract Screening Results Cloud-Native: Backend aggregation + Frontend Excel generation
75 lines
1.1 KiB
Markdown
75 lines
1.1 KiB
Markdown
# 测试文档
|
||
|
||
> **文档定位:** 测试策略、测试用例、测试报告
|
||
> **适用范围:** 开发团队、QA团队
|
||
|
||
---
|
||
|
||
## 📋 测试策略
|
||
|
||
### 1. 单元测试
|
||
- 核心业务逻辑测试
|
||
- 工具函数测试
|
||
- 覆盖率目标:60%+
|
||
|
||
### 2. 集成测试
|
||
- API端点测试
|
||
- 数据库集成测试
|
||
- 外部服务集成测试
|
||
|
||
### 3. 端到端测试
|
||
- 关键业务流程测试
|
||
- UI自动化测试
|
||
|
||
### 4. 性能测试
|
||
- API响应时间
|
||
- 并发测试
|
||
- 压力测试
|
||
|
||
---
|
||
|
||
## 📚 测试文档清单
|
||
|
||
| 文档 | 说明 | 状态 |
|
||
|------|------|------|
|
||
| **01-测试策略.md** | 整体测试策略和方法 | ⏳ 待创建 |
|
||
| **02-自动化测试.md** | 自动化测试框架和实践 | ⏳ 待创建 |
|
||
| **03-性能测试.md** | 性能测试标准和工具 | ⏳ 待创建 |
|
||
|
||
---
|
||
|
||
## 🎯 各模块测试文档
|
||
|
||
每个业务模块的测试文档在各自的目录下:
|
||
- `03-业务模块/ASL-AI智能文献/04-测试文档/`
|
||
- `03-业务模块/AIA-AI智能问答/04-测试文档/`
|
||
- ...
|
||
|
||
---
|
||
|
||
**最后更新:** 2025-11-06
|
||
**维护人:** 技术架构师
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|