SuperAPI AI 工具集

cawplan-defect-ticket

测试与质量

查看项目

更新于 10-15 20:11

技能介绍

用途:将 TestRail 中 Failed/Blocked 的测试结果,经 QA Insights A4 流程登记为 CawPlan 缺陷单,或关联到已有缺陷。

主要能力:解析测试上下文(tests/view → test_id);冷启动时先执行 execution failures --test-id,再执行 defects draft;支持新建缺陷(create-ticket)、关联已有缺陷(link-ticket);提供标题精炼、预览与决策闸、提交闸等确认环节。

使用方式:Step 0 解析上下文,冷启动用 execution failures … --test-id,缺 version 时用 resolve-url;辅助命令有 products list、versions list。Step 1 用 defects draft(字段 flag);Step 4 用 defects create-ticket(--body-file + --confirm);Step 5 用 defects link-ticket(--ticket-id)。create-ticket 禁止使用 --description、--type、--result-id 等字段 flag。路径中的 <result_id> 只能来自 Step 0 items[].result_id,或 A3 热接力且 result_id !== test_id。

限制:存在硬门禁与双确认闸,禁止跳闸;禁止使用 cawplan api、无 test_id 的全 Version failures、Run 轮询、首轮索要 Run 链接、--include-flaky(除非明确要求)以及未确认的写操作。主文默认不展示 result_id、UUID、recommendation/failure_category 原始枚举,用户要求技术详情时再展开。Reference 需按时机加载 execution.md 与 ux.md,禁止开场一次性读取全部 references。