cawplan-defect-ticket

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

CawPlan Defect Ticket — A4 失败转缺陷

CawPlan缺陷工单 — A4失败转缺陷

bash
cawplan skill check
bash
cawplan skill check

硬门禁(MUST)

硬门禁(MUST)

  1. tests/view
    test_id
    ,不是
    result_id
    ;冷启动必须先
    execution failures --test-id
    ,再
    defects draft
  2. defects draft
    /
    create-ticket
    /
    link-ticket
    的路径
    <result_id>
    只能来自 Step 0
    items[].result_id
    (或 A3 热接力且
    result_id !== test_id
    )。
  3. create-ticket
    =
    --body-file
    +
    --confirm
    ;禁止
    --description
    --type
    --result-id
    等字段 flag。
  4. 双确认闸:Step 2 决策闸 →
    --dry-run
    → Step 4/5 提交闸 →
    --confirm
    。禁止跳闸。
  5. 用户展示:友好字段名(
    ux.md §Glossary
    );
    result_id
    默认隐藏;Agent 自行
    AskUserQuestion
    (不写入
    allowed-tools
    )。
  1. tests/view
    test_id
    ,而非
    result_id
    ;冷启动必须先执行
    execution failures --test-id
    ,再执行
    defects draft
  2. **
    defects draft
    /
    create-ticket
    /
    link-ticket
    路径中的
    <result_id>
    **只能来自步骤0的
    items[].result_id
    (或A3热接力且
    result_id !== test_id
    )。
  3. create-ticket
    必须搭配
    --body-file
    +
    --confirm
    ;禁止使用
    --description
    --type
    --result-id
    等字段标记。
  4. 双确认闸:步骤2决策闸 →
    --dry-run
    → 步骤4/5提交闸 →
    --confirm
    。禁止跳过确认步骤。
  5. 用户展示:使用友好字段名(参考
    ux.md §Glossary
    );默认隐藏
    result_id
    ;Agent需自行调用
    AskUserQuestion
    (无需写入
    allowed-tools
    )。

Reference 加载(MUST)

Reference加载(MUST)

时机Read禁止
开场一次性 Read 全部 references
冷启动 / URL / Step 0–1
execution.md
对应 §
Step 1.5
execution.md §Title
Step 2 / 4 / 5 确认与展示
ux.md
时机读取内容禁止操作
开场一次性读取全部reference
冷启动 / URL / 步骤0–1
execution.md
对应章节
步骤1.5
execution.md §Title
步骤2 / 4 / 5 确认与展示
ux.md

允许命令

允许命令

Step命令
0
execution failures … --test-id
;缺 version →
resolve-url
辅助
products list
versions list
1
defects draft
(字段 flag)
4
defects create-ticket
--body-file
5
defects link-ticket
--ticket-id
禁止
cawplan api
、无
test_id
的全 Version
failures
、Run 轮询、首轮要 Run 链接、
--include-flaky
(除非明确要求)、未确认写操作。
步骤命令
0
execution failures … --test-id
;若缺少版本信息则执行
resolve-url
辅助
products list
versions list
1
defects draft
(使用字段标记)
4
defects create-ticket
(搭配
--body-file
5
defects link-ticket
(搭配
--ticket-id
禁止操作
cawplan api
、未指定
test_id
的全版本
failures
、轮询测试轮次、首轮索要测试轮次链接、
--include-flaky
(除非明确要求)、未确认的写入操作。

Workflow

工作流程(Workflow)

Step动作Detail
0解析上下文;冷启动
failures --test-id
(首轮无
--run-id
execution §0
0.5默认
items[0]
;多 Result / 无 Result / 已关联 → 交互
ux §Prompts
1
defects draft
;占位 remarks → 回 Step 0
execution §1
1.5标题精炼(
CREATE_NEW
);
SKIP_BUG
跳过
execution §Title
2预览 + 决策闸(新建/关联/跳过/改标题)
ux §Prompts
3
CREATE_NEW
→4;
LINK_EXISTING
→5;
SKIP_BUG
→停(可强制新建→4)
4组装 body →
--dry-run
→ 提交闸 →
--confirm
execution §Create
5
link-ticket --dry-run
→ 提交闸 →
--confirm
execution §Create
可跳过 Step 0:同会话 A3
failures
行含
result_id
+
comment
result_id !== test_id
;或用户给的
result_id
非 tests/view 解析值。
步骤动作详情
0解析上下文;冷启动时执行
failures --test-id
(首轮不使用
--run-id
参考
execution §0
0.5默认选择
items[0]
;若存在多个结果/无结果/已关联,则进行交互
参考
ux §Prompts
1执行
defects draft
;占位备注后返回步骤0
参考
execution §1
1.5精炼标题(
CREATE_NEW
场景);若为
SKIP_BUG
则跳过
参考
execution §Title
2预览 + 决策闸(新建/关联/跳过/修改标题)参考
ux §Prompts
3选择
CREATE_NEW
进入步骤4;选择
LINK_EXISTING
进入步骤5;选择
SKIP_BUG
则终止(可强制新建进入步骤4)
4组装请求体 → 执行
--dry-run
→ 提交闸 → 执行
--confirm
参考
execution §Create
5执行
link-ticket --dry-run
→ 提交闸 → 执行
--confirm
参考
execution §Create
可跳过步骤0的情况:同会话中A3的
failures
行包含
result_id
+
comment
result_id !== test_id
;或用户提供的
result_id
并非从tests/view解析得到的值。

输出

输出

主文禁止默认展示
result_id
、UUID、
recommendation
/
failure_category
原始枚举。
markdown
undefined
主文禁止默认展示
result_id
、UUID、
recommendation
/
failure_category
原始枚举值。
markdown
undefined

缺陷登记结果

缺陷登记结果

项目内容
用例{case_title}
TestRail 测试{test_id}
目标版本{version_name}
处理方式{新建缺陷 / 关联已有 / 暂不登记}
CawPlan 缺陷单{display_id}
缺陷标题{final_description}
TestRail 回写{链接或「已关联」}

用户要「技术详情」时再展开:`result_id`、`created_on`、`case_id`、`run_id`、`product_id`、`version_id`。
项目内容
用例{case_title}
TestRail测试{test_id}
目标版本{version_name}
处理方式{新建缺陷 / 关联已有 / 暂不登记}
CawPlan缺陷单{display_id}
缺陷标题{final_description}
TestRail回写{链接或「已关联」}

当用户要求查看「技术详情」时,再展开展示:`result_id`、`created_on`、`case_id`、`run_id`、`product_id`、`version_id`。

References

参考文档

  • execution.md — URL、Step 0–1、标题精炼、create/link body
  • ux.md — 字段友好名、AskUserQuestion、确认闸
  • execution.md — URL、步骤0–1、标题精炼、create/link请求体
  • ux.md — 字段友好名、AskUserQuestion、确认闸