validation_matrix
Run multi-dimensional validation (functional, visual, performance, accessibility) with role-based permission checks and generate a comprehensive score report.
Instructions
执行多维度验证矩阵(功能/视觉/性能/a11y),输出综合评分报告。支持角色×功能权限矩阵验证,每个角色使用独立 session。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| har | No | 是否导出 HAR JSON,默认 true | |
| url | Yes | 目标页面 URL | |
| name | No | 矩阵验证名称 | |
| roles | Yes | 角色列表,每个角色可包含 name、sessionName、url、setupSteps | |
| features | Yes | 功能列表,每个功能可包含 name、steps、stepsByRole、expected、expectedByRole、assertions、assertionsByRole、focus | |
| dimensions | No | 验证维度列表,可选:functional、visual、performance、a11y | |
| instrument | No | 是否注入运行时探针,默认 true | |
| clearErrors | No | 执行前是否清空错误 checkpoint,默认 true | |
| a11yStandard | No | a11y 标准级别:wcag-a / wcag-aa / wcag-aaa | wcag-aa |
| outputFormat | No | 输出格式:json / markdown | json |
| clearArtifacts | No | 执行前是否清理证据产物,默认 false | |
| visualBaseline | No | 视觉基线截图路径(可选) | |
| continueOnFailure | No | 单元失败后是否继续执行后续功能,默认 false | |
| investigateOnFailure | No | 失败时是否自动 debug_investigate,默认 true | |
| performanceThreshold | No | 性能阈值(LCP ms),默认 2500 |