# ai-test-platform **Repository Path**: luxiong2015/ai-test-platform ## Basic Information - **Project Name**: ai-test-platform - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-08-22 - **Last Updated**: 2026-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AI-TEST Platform 基于 GB/T 25000(ISO 25010)质量特性的 AI 软件测试平台 ## 架构 ``` ┌─────────────────────────────────────────────────────────────┐ │ Vue 3 前端 (Port 8080) │ └──────────────────────────┬──────────────────────────────────┘ │ HTTP /api ┌──────────────────────────▼──────────────────────────────────┐ │ Spring Cloud Gateway (Port 9500) │ └──────────────────────────┬──────────────────────────────────┘ │ ┌──────────────────────────▼──────────────────────────────────┐ │ ai-test-orchestrator (Port 8081) │ │ ┌────────────────────────────────────────────────────────┐ │ │ │ TaskOrchestrator → 调度8个Agent │ │ │ │ AgentRegistry → 注册管理 │ │ │ │ ContextStore → Redis存储共享上下文 │ │ │ │ EventBus → Redis Pub/Sub 异步通信 │ │ │ └────────────────────────────────────────────────────────┘ │ └──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬───────┘ │ │ │ │ │ │ │ │ ┌───▼───┐ ┌─▼───┐ ┌▼───┐ ┌▼──┐ ┌▼──┐ ┌▼──┐ ┌▼──┐ ┌▼──┐ │Func │ │Perf │ │Comp│ │Usa│ │Rel│ │Sec│ │Mai│ │Por│ 8个LLM Agent │8091 │ │8092 │ │8093│ │809│ │809│ │809│ │809│ │809│ └───────┘ └─────┘ └────┘ └──┘ └──┘ └──┘ └──┘ └──┘ │ │ └────────────── 共享数据总线(Redis) ───────────────────────────┘ ``` ## 质量特性(8大智能体) | 特性 | 端口 | 子特性 | |------|------|--------| | 功能适用性 | 8091 | 功能完整性、正确性、适当性 | | 性能效率 | 8092 | 时间行为、资源利用率、容量 | | 兼容性 | 8093 | 共存性、互操作性 | | 易用性 | 8094 | 可识别性、可学习性、可操作性、用户错误保护、可访问性 | | 可靠性 | 8095 | 成熟度、可用性、容错性、可恢复性 | | 安全性 | 8096 | 保密性、完整性、不可抵赖性、可问责性、真实性 | | 可维护性 | 8097 | 模块化、可重用性、可分析性、可修改性、可测试性 | | 可移植性 | 8098 | 适应性、可安装性、可替换性 | ## 快速启动 ### 1. 环境准备 - JDK 17+ - Maven 3.9+ - Redis 7+ - MySQL 8+ - Node 20+ ### 2. 配置LLM ```bash export OPENAI_API_KEY=your-api-key # 可选:使用通义千问/DeepSeek export OPENAI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 export OPENAI_MODEL=qwen-max ``` ### 3. 初始化数据库 ```bash mysql -u root -p < sql/init.sql ``` ### 4. 启动后端 ```bash # 启动基础服务 redis-server & mysql.server start & # 启动各模块 mvn spring-boot:run -pl ai-test-orchestrator & mvn spring-boot:run -pl ai-test-agents/agent-functional & # ... 其他Agent mvn spring-boot:run -pl ai-test-gateway & ``` ### 5. 启动前端 ```bash cd ai-test-web npm install npm run dev ``` ## 技术栈 - **后端**:Spring Boot 3.2 + Spring Cloud 2023 + Spring AI + MyBatis-Plus + Redis - **前端**:Vue 3 + Element Plus + TypeScript + Pinia + Vite + ECharts - **AI**:OpenAI / 通义千问 / DeepSeek (通过Spring AI统一接口) ## 数据共享机制 - **AgentContext**:每个测试任务的共享上下文,存储于Redis - **EventBus**:基于Redis Pub/Sub,Agent间异步事件通知 - **依赖管理**:性能Agent依赖功能Agent完成,通过共享数据异步等待