perf(executor): 执行耗时优化 P0/P1/P2(重试收紧+超时收紧+快速失败)
10 条 UI 用例(含 7 条失败)执行耗时 24.8 分钟,根因 step_retry_count=2 ×
多策略超时叠加(单条失败用例 ~210s)。三层优化:
- P0: step_retry_count 默认 2→1(execution_service + playwright_executor + recorder)
- P1: has-text 前置等待 25s→10s、表格行轮询 150s→30s、checkbox 轮询 40s→20s、
iframe 点击 5s→3s
- P2: _selector_exists_fast 快速失败探测(主页面/iframe/micro-app ≤500ms),
_do_click/_do_fill/_do_check 入口元素不在 DOM 即跳过策略链
单测 9 项 + 全量 352 passed 无回归;deploy_timeout_opt.py 部署三台;
5.44 同一 10 用例定时任务实测 24.8min→10.2min(-59%),通过率 30% 无回归
Co-Authored-By:
Claude <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论