主要改进: - 新增统一测试器 (universal_tester.py) 支持多种测试模式 - 优化测试报告生成器,支持汇总报告和操作截图 - 增强探索器 DFS 算法和状态指纹识别 - 新增智能测试配置 (smart_test.yaml) - 改进 AI 模型集成 (GLM/Gemini 支持) - 添加开发调试工具和文档
This commit is contained in:
32
tests/configs/smart_test.yaml
Normal file
32
tests/configs/smart_test.yaml
Normal 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: "分析概览"
|
||||
Reference in New Issue
Block a user