Loading...
Loading...
File or link CawPlan defects from failed/blocked TestRail Results via QA Insights A4. Use when: SQA wants to turn a TestRail Failed/Blocked Result into a CawPlan Ticket, paste a tests/view URL to file a defect, review an A4 defect draft, create a BUGFIX/FEATURE ticket, or link an existing ticket back to TestRail defects. Cold start with tests/view MUST call execution failures --test-id BEFORE defects draft; never use test_id as the draft path result_id. A4 write path (create-ticket) MUST use --body-file or --body JSON — never field flags like --description or --result-id. NOT for: importing test cases (use `cawplan-testcase-import`); creating TestRail Plans/Runs (use `cawplan-testplan-layout`); release risk assessment; generating requirements or test points.
npx skill4agent add cawcut/skill-cawplan cawplan-defect-ticketcawplan skill checktests/viewtest_idresult_idexecution failures --test-iddefects draftdefects draftcreate-ticketlink-ticket<result_id>items[].result_idresult_id !== test_idcreate-ticket--body-file--confirm--description--type--result-id--dry-run--confirmux.md §Glossaryresult_idAskUserQuestionallowed-tools| 时机 | Read | 禁止 |
|---|---|---|
| 开场 | 无 | 一次性 Read 全部 references |
| 冷启动 / URL / Step 0–1 | | — |
| Step 1.5 | | — |
| Step 2 / 4 / 5 确认与展示 | | — |
| Step | 命令 |
|---|---|
| 0 | |
| 辅助 | |
| 1 | |
| 4 | |
| 5 | |
cawplan apitest_idfailures--include-flaky| Step | 动作 | Detail |
|---|---|---|
| 0 | 解析上下文;冷启动 | |
| 0.5 | 默认 | |
| 1 | | |
| 1.5 | 标题精炼( | |
| 2 | 预览 + 决策闸(新建/关联/跳过/改标题) | |
| 3 | | — |
| 4 | 组装 body → | |
| 5 | | |
failuresresult_idcommentresult_id !== test_idresult_idresult_idrecommendationfailure_category## 缺陷登记结果
| 项目 | 内容 |
|------|------|
| 用例 | {case_title} |
| TestRail 测试 | [{test_id}]({result_url}) |
| 目标版本 | {version_name} |
| 处理方式 | {新建缺陷 / 关联已有 / 暂不登记} |
| CawPlan 缺陷单 | [{display_id}]({ticket_url}) |
| 缺陷标题 | {final_description} |
| TestRail 回写 | {链接或「已关联」} |result_idcreated_oncase_idrun_idproduct_idversion_id