apifox-test-case

Installation
SKILL.md

接口测试用例

前置条件:先阅读 ../apifox-cli/SKILL.md。若旧总入口与本 skill 的领域规则冲突,以当前 CLI help 和本 skill 为准。涉及接口定义时按当前 CLI help 使用 endpoint、schema、folder 等命令;涉及多步骤流程时读取 ../apifox-test-scenario/SKILL.md

具体命令参数以当前 CLI help 为准。创建和更新接口测试用例时重点处理 categoryId 展示风险、test-case 与 test-scenario 边界、requestBody/processor/assertion/extractor 结构和运行验证边界。Agent 写入前必须用 cli-schema validate 校验 payload,写入后用 get 回读确认保存结构。

何时使用

  • 创建接口下的自动化测试用例。
  • 更新测试步骤、断言、提取变量、前后置处理器。
  • 查看某个 endpoint 下有哪些测试用例。
  • 按 caseId、endpointId、categoryId 运行接口测试用例。
  • 创建或维护测试数据集。
  • 排查“测试步骤无法展示”“断言不生效”“提取变量为空”。

不应使用

Installs
313
GitHub Stars
14
First Seen
Jul 9, 2026
apifox-test-case — apifox/apifox-cli-skills