bpmax-cli 0.1.44-beta.23 → 0.1.44-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +206 -16
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +15 -0
package/package.json
CHANGED
|
@@ -73,6 +73,21 @@ description: "用于在 BPMAX 中做全链路流程测试、场景回归、前
|
|
|
73
73
|
- 哪怕本轮只跑一次,也要把 handoff、step-run、浏览器截图、DOM/URL、console/network、submit/readback 证据落到稳定目录,便于下一次直接复用或从失败点恢复。
|
|
74
74
|
- `bpmax-cli test-suite lint` 会强制检查每条非 deprecated E2E 用例是否已有首次运行沉淀方式;缺少 `bpmax-cli e2e create-page-submit`、`bpmax-cli e2e step-run`、`bpmax-cli e2e record-from-evidence`、`data profile`、`scenario plan` 或 reusable step template 时,不要直接判业务失败,而是读取输出中的 `e2e_acceleration.bootstrap_required=true` 和 `missing_cases`。
|
|
75
75
|
- 发现 `bootstrap_required=true` 时,执行编排必须先跑一次真实页面或安全 step-run,把截图、DOM/URL、console/network、submit/readback 证据保存到稳定目录,然后运行 `bpmax-cli e2e record-from-evidence` 生成 reusable step template;完成沉淀后再进入批量复跑或结论判断。
|
|
76
|
+
- 缓存执行不是无条件信任旧模板。每个 reusable step template 必须包含 `expected_checks`,复用时 `bpmax-cli e2e step-run --data-profile @...` 会先检查当前运行态模式是否仍符合预期,例如处理人可处理、step 未结束、必填字段集合、缺失字段范围、动作仍存在。
|
|
77
|
+
- 如果 `expected_checks` 缺失、失败,或没有拿到预期范围内的结果,必须把该 step 判为 `cache_stale`,停止继续提交后续步骤;不要把缓存失效误判为业务失败,也不要继续用旧 payload 硬推。
|
|
78
|
+
- 缓存失效时优先自动重建当前步骤缓存:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
bpmax-cli e2e step-run \
|
|
82
|
+
--project-id <project_id> \
|
|
83
|
+
--data-profile @.codex/e2e-templates/<scenario-step>.json \
|
|
84
|
+
--auto-refresh-cache \
|
|
85
|
+
--cache-out .codex/e2e-templates/<scenario-step>.json \
|
|
86
|
+
--evidence-dir .codex/tmp/e2e/<run> \
|
|
87
|
+
--format json
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
- 自动刷新后的模板只能说明“当前运行态模式已重新采样”。如果新模板显示新增必填字段、处理人不可处理、动作消失或 step 已结束,必须先补数据/换样本/修配置,再复跑;不得把刷新后的缓存当作通过结论。
|
|
76
91
|
- 成功通过一次的复杂 step,必须沉淀模板:
|
|
77
92
|
|
|
78
93
|
```bash
|