بنقرة واحدة
testany-pipeline
Testany pipeline 编排与 CRUD - 基于 automation design 或现有 case keys 创建执行与编排单元
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Testany pipeline 编排与 CRUD - 基于 automation design 或现有 case keys 创建执行与编排单元
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
从 OpenAPI 生成的 Testany case 源代码中自动识别入参和出参,并同步到 case 的环境变量列表中。适用于源代码存储在需要认证的 Git 仓库(如 Bitbucket)的场景。
Testany platform case 编写助手 - 将传统测试场景拆解为 Testany platform cases,并生成可注册的 case packages
Testany 平台核心概念和配置参考
Testany platform case 注册与 CRUD - 将已准备好的 platform case package 注册到平台,并管理 metadata、脚本与生命周期
分析 Testany 测试失败原因 - 排查问题、查看日志、定位根因
Testany Git 导入:把 Git 仓库里的测试脚本批量注册成 Testany platform cases,并持续同步、切 commit、演化 binding、配 webhook
| name | testany-pipeline |
| description | Testany pipeline 编排与 CRUD - 基于 automation design 或现有 case keys 创建执行与编排单元 |
| argument-hint | [操作] [描述],如:根据 decomposition 创建 pipeline、查看 Y2K-0001A、更新 relay 配置 |
本 skill 通过 Testany MCP 工具管理 Testany 平台上的 pipeline。 所有操作都是对 Testany 平台的远程 API 调用,不涉及本地文件系统。
关键前提:
用户输入: $ARGUMENTS
使用本 skill 前,先按 automation-model.md 理解边界:
testany-case-writing 负责把它拆成 platform casestestany-trigger 负责为 pipeline 配置 Plan / Manual Trigger / Gatekeeper重要结论:
按以下优先级选择输入模式:
Primary:automation design / decomposition
testany-case-writingTestany Automation Handoff 生成Secondary:用户明确给出的 case keys + 依赖描述
Fallback:从现有 case metadata 反推
| 用户意图 | 操作类型 | 工具 |
|---|---|---|
| 创建新 pipeline | Create | testany_create_pipeline |
| 查看 pipeline 详情 | Read | testany_get_pipeline |
| 查看 pipeline YAML | Read | testany_get_pipeline_yaml |
| 搜索/列出 pipelines(按 workspace) | Read | testany_list_pipelines |
| 列出我的 pipelines(按 workspace) | Read | testany_list_my_pipelines |
| 修改 pipeline 配置 | Update | testany_update_pipeline |
| 删除 pipeline | Delete | testany_get_pipeline_used_by → testany_delete_pipeline |
| 验证 YAML 语法 | Validate | testany_verify_pipeline |
| 检查被引用情况 | Query | testany_get_pipeline_used_by |
如果上游已给出以下内容,直接按它编排:
source_case_ids / scenario_group(若来自 Test Spec handoff)whenFailed / expect: fail如果用户直接给出:
则直接进入 YAML 构建。
仅在没有上游 design 时使用:
testany_list_cases / testany_get_casecase_labels、description、environment_variables[].description并行获取:
testany_get_my_workspacestestany_list_cases 或 testany_list_my_cases如果用户还没有把 platform cases 注册到 Testany 平台:
testany-case根据输入模式,确定:
expect: failcase_keys仅当满足以下条件时,允许直接用 case_keys 自动生成简单顺序 pipeline:
expect: fail出现以下任一情况时,必须显式生成 YAML:
whenPassed / whenFailedexpect: fail如有 relay,必须:
testany_get_case 检查源 case 是否有 type='output' 变量testany_get_case 检查目标 case 是否有 type='env' 变量whenFailed 组合type='secrets' 行作为 relay 源或目标:secrets 的值来自 workspace Credential Safe,不经过 relay 传递;目标端也不能被 relay 覆写。如果 relay 源/目标命中 secrets 行,停下来向用户说明并请求改用 env 或 output 行调用 testany_create_pipeline:
| 参数 | 必填 | 说明 |
|---|---|---|
name | 是 | pipeline 名称 |
workspace | 是 | 所属工作空间 key |
description | 否 | 描述 |
definition | 否 | Pipeline YAML 配置 |
case_keys | 否 | Case keys 数组(仅简单顺序场景) |
调用 testany_verify_pipeline:
kind 是否在支持范围内(rule/v1.2 或 rule/v1.3)rules 结构是否合法当且仅当前两种输入模式都不存在时,才允许从现有 cases 反推。
| 字段 | 用途 | 可靠程度 |
|---|---|---|
case_labels | 按 User Story 编号、功能模块筛选 | 高 |
description | 理解动作、前置条件、验证目标 | 中 |
environment_variables[].description | 理解输入/输出变量语义 | 中 |
name | 辅助判断 | 低 |
如果仍然无法确定:
必须向用户确认,而不是猜测。
| 场景 | 工具 | 说明 |
|---|---|---|
| 获取 pipeline 详情 | testany_get_pipeline | 传入 pipeline key |
| 获取 YAML 内容 | testany_get_pipeline_yaml | 传入 pipeline key |
| 搜索/列出 pipelines(按 workspace) | testany_list_pipelines | workspace 必填 |
| 仅列出我的 pipelines(按 workspace) | testany_list_my_pipelines | workspace 必填 |
| 参数 | 说明 |
|---|---|
name | pipeline 名称 |
description | 描述 |
definition | YAML 定义 |
case_keys | 简单顺序执行的 case keys |
environments | 环境标签列表 |
owned_by | 所有者邮箱 |
pipeline_labels | Pipeline 标签列表 |
testany_get_pipeline 读取当前配置testany_get_pipeline_yaml 读取当前 YAML(如需修改编排)testany_update_pipeline 提交更新删除前必须检查引用情况:
testany_get_pipeline_used_byPlan / Manual Trigger / Gatekeeper 引用,先提示用户解除引用警告:此操作不可撤销。
| 场景 | 处理方式 |
|---|---|
| 用户只有场景,没有已注册 case | 先去 testany-case-writing + testany-case |
| 用户只有一个 case,想直接执行 | 仍需创建一条单 case pipeline |
| 有 relay 但没给清楚源/目标 | 回到上游确认 decomposition |
| 只有现有 case 库,没有 design | 可 fallback 反推,但必须让用户确认 |
| 用户想配置什么时候运行 | 切到 testany-trigger |
| 用户想立即执行 pipeline | 切到 testany-trigger |
| 用户想看 execution 进度或历史 | 切到 testany-execution |
任务完成后,向用户汇报:
automation design / explicit case keys / fallback inferencetestany-triggertestany-execution