Loading...
Loading...
Manually link existing TestRail Cases or Plans/Runs back to CawPlan mappings after QA hand-imported or hand-created TestRail artifacts. Link matches requirement_id + test_point_id in refs only (no hash validation). Use when: linking CSV-imported cases by refs; binding hand-made TestPlan/TestRun to CawPlan tickets; 用例回链、refs 映射、Plan Run 绑定、手工导入后 link. Ideal path after A3 CSV import: auto Suite → AutoScan → one confirm. NOT for: creating TestRail cases (use `cawplan-testcase-import`); creating Plans/Runs (use `cawplan-testplan-layout`); generating/exporting cases (use `cawplan-testcase-generate`); execution progress or defect filing.
npx skill4agent add cawcut/skill-cawplan cawplan-testrail-linkcawplan skill checkreferences/UNTRUSTED_CONTENT.mdexecute --confirmmilestone mapping-gethas_mapping=falselink-plans.md §MilestoneGateconflictsimport/executeplan/executeexecuteux.md §Glossarypreview_idmapping_idux.md §TestRailLinkssuites.length===1link-cases.md §AutoScanux.md §Costmappings getsections list| 时机 | Read | 禁止 |
|---|---|---|
| 路由 / 框 0 / 确认闸 / Preview·Result 模板 / 错误 | | 一次性 Read 全部 references |
| 仅 Workflow A | | 未路由到 A 时 Read |
| 仅 Workflow B | | 未路由到 B 时 Read |
| 命中 | Workflow |
|---|---|
| 用例 / Case / CSV / refs / 导入后回链 / link case | A |
| Plan / Run / 测试计划 / 工单绑定 / link plan | B |
| A 与 B 同时命中 | |
| 均未命中 | 框 0:链接 用例 还是 计划/运行? |
| 用途 | 命令 |
|---|---|
| 映射 / origin | |
| Section 查找(A · AutoScan / 框 A3s) | |
| Milestone 闸门(B · Step 1) | |
| URL 解析(B · 可选) | |
| A preview / execute | |
| B preview / execute | |
| 辅助解析 | |
cawplan api&&| Step | 动作 | Detail |
|---|---|---|
| 0 | Agent 自检 CSV 导入前提 | 不单独 Ask;同会话 A3 / 用户说「已导入」→ 假定满足;preview 全失败时再引导 |
| 1 | 解析 | 热接力可跳过 A1;缺则 |
| 2 | | |
| 3 | §AutoScan(先无 | 无感 retry ≤1 次;仍失败 → 框 A3s |
| 4 | 展示 preview(含超链接) | |
| 5 | 确认闸(仅 | |
| 6 | | |
Step 3–4 合并执行:AutoScan 的首次失败 preview 不对用户展示,直接 retry 或进 A3s。
| Step | 动作 | Detail |
|---|---|---|
| 0 | 解析 | 缺则 |
| 1 | | |
| 2 | 收集绑定:Ticket + TestRail Plan/Run URL 或 ID | |
| 3 | 组装 | |
| 4 | | |
| 5 | 展示 preview(含超链接) | |
| 6 | 确认闸 | |
| 7 | | |
| code | Workflow | 处理 |
|---|---|---|
| B | |
| A | 列 |
| B | 框 B-supersede;补 |
| A/B | |
| A | 重走框 A3 / 框 A3s |
| B | 核对 URL/ID; |
| A/B | 重新 preview(确认态可复用) |
| A/B | 勿重复 execute |
| A/B | 补 |
| A/B | |
ux.md §ConflictMessagesTestRail case is already mapped to a different test pointTestRail case does not match the case already mapped for this test pointanother TestRail case in this preview claims the same test point and case identity