browser_counterfactual_analyze
Analyze test failures by evaluating if removing a potential factor (obstruction, JS error, HTTP error, loading issue) would prevent failure. Generate ranked root cause hypotheses with confidence scores and verification suggestions.
Instructions
反事实根因分析 - 当测试失败时,分析"如果消除因素X(遮挡物/JS错误/HTTP错误/加载问题),测试是否还会失败",自动生成根因假设并按置信度排序,给出验证工具建议
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 输出格式:json(默认结构化数据)或 html(HTML 报告) | json |
| failureContext | No | 可选,失败上下文描述(如"按钮不可见"、"表单提交失败"、"网络超时"等),用于匹配相关根因假设并提高置信度 |