feat: 增强测试框架功能
Some checks failed
AI Web Tester CI / test (push) Has been cancelled

主要改进:
- 新增统一测试器 (universal_tester.py) 支持多种测试模式
- 优化测试报告生成器,支持汇总报告和操作截图
- 增强探索器 DFS 算法和状态指纹识别
- 新增智能测试配置 (smart_test.yaml)
- 改进 AI 模型集成 (GLM/Gemini 支持)
- 添加开发调试工具和文档
This commit is contained in:
empty
2026-01-05 20:23:02 +08:00
parent 3447ea340a
commit 1f1cc4db9a
31 changed files with 4631 additions and 770 deletions

View File

@@ -0,0 +1,32 @@
# 智能配置 - 自动适应登录状态
name: 智能适应测试
url: "http://47.99.105.253:8084"
mode: hybrid
model: glm
# 测试步骤 - 根据登录状态自动调整
steps:
# 步骤1: 显式登录逻辑
- action: goal
goal: "在用户名输入框中输入 admin在密码输入框中输入 password点击登录按钮"
# 步骤2: 确认进入首页
- action: wait
duration: 3000
# 步骤3: 深度探索后台功能
- action: explore
config:
max_depth: 10
max_clicks: 500
# 引导 AI 关注您截图中显示的菜单
focus_patterns: ["管理", "项目", "方案", "审核", "系统"]
dangerous_patterns: ["退出", "注销", "删除"]
auto_handle_login: false # 已经在第一步处理过了
# 验证规则 - 基础验证
verifications:
- type: url_not_contains
value: "login"
- type: text_contains
value: "分析概览"