aicodem-xmind-testcase

生成 XMind 格式的测试用例思维导图文件。基于测试用例数据自动生成结构化的 XMind 文件,支持电商消费券、登录、注册、下单等多种测试场景。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "aicodem-xmind-testcase" with this command: npx skills add aicodem/aicodem-xmind-testcase

AICodeM XMind 测试用例生成器

生成 XMind 格式的测试用例思维导图文件。

功能

  • 根据测试用例数据自动生成 XMind 文件
  • 支持多层级结构(模块 → 测试点 → 用例 → 详情)
  • 每条用例包含:前置条件、测试步骤、预期结果、优先级
  • 输出文件兼容 XMind、MindManager、FreeMind 等工具

使用方法

方式 1:直接调用技能

{
  "skill": "aicodem-xmind-testcase",
  "input": {
    "test_data": {
      "模块名称": [
        {
          "测试点": "功能点名称",
          "cases": [
            {
              "用例名称": "TC_001-用例描述",
              "前置条件": "执行前的环境状态",
              "步骤": ["步骤 1", "步骤 2"],
              "预期结果": "期望的输出结果",
              "优先级": "高 | 中 | 低"
            }
          ]
        }
      ]
    }
  }
}

方式 2:命令行执行

cd skills/aicodem-xmind-testcase
python3 scripts/generate_xmind.py

输入数据格式

{
  "模块名称": [
    {
      "测试点": "功能点名称",
      "cases": [
        {
          "用例名称": "TC_001-用例描述",
          "前置条件": "执行前的环境状态",
          "步骤": ["步骤 1", "步骤 2"],
          "预期结果": "期望的输出结果",
          "优先级": "高 | 中 | 低"
        }
      ]
    }
  ]
}

输出文件结构

测试用例
├── 模块 1
│   ├── 测试点 1
│   │   └── TC_001-用例名称 [优先级]
│   │       ├── 前置条件:...
│   │       ├── 测试步骤
│   │       │   ├── 1. 步骤 1
│   │       │   └── 2. 步骤 2
│   │       └── 预期结果:...
│   └── 测试点 2
└── 模块 2

示例

电商消费券测试用例

{
  "1-领取功能测试": [
    {"测试点": "正常领取流程", "cases": [
      {"用例名称": "TC_RECV_001-正常领取", "前置条件": "用户已登录", "步骤": ["点击领取"], "预期结果": "领取成功", "优先级": "高"}
    ]},
    {"测试点": "限领规则", "cases": [
      {"用例名称": "TC_RECV_002-超限领取", "前置条件": "已达限领上限", "步骤": ["点击领取"], "预期结果": "提示已超限", "优先级": "高"}
    ]}
  ],
  "2-使用功能测试": [
    {"测试点": "门槛验证", "cases": [
      {"用例名称": "TC_USE_001-满足门槛", "前置条件": "订单金额达标", "步骤": ["选择消费券"], "预期结果": "抵扣成功", "优先级": "高"}
    ]}
  ]
}

依赖

  • Python 3.6+
  • 标准库 zipfile (无需额外安装)

文件说明

aicodem-xmind-testcase/
├── SKILL.md              # 技能说明文档(本文件)
├── skill.yaml            # 技能配置文件
├── scripts/
│   └── generate_xmind.py # 生成脚本入口
├── examples/
│   └── coupon_test.json  # 示例输入数据
└── LICENSE               # MIT License

注意事项

  1. 生成的 .xmind 文件是标准 ZIP 格式,可直接用 XMind 打开
  2. 如果 XMind 打不开,可尝试导入 OPML 格式(需额外配置)
  3. 用例名称建议包含 TC 编号,便于追踪管理
  4. 优先级字段可选,默认显示为"中"

版本历史

  • v1.0.0 (2026-03-13): 初始版本,支持基础 XMind 生成

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Novel Workshop

多模型命题小说创作工坊。用户给出写作命题,自动完成:AI 写初稿 → 三路并行审阅(逻辑/文学/锐评)→ AI 改稿 → 飞书文档完整存档。 一键启动,全程自动,零手动干预。支持飞书实时进度推送。 触发词:命题写作、写一篇小说、命题小说、创作工坊、novel workshop

Registry SourceRecently Updated
General

Openclaw Commerce Shopify

Shopify store management through OpenClaw Commerce API

Registry SourceRecently Updated
General

Article Extract

提取微信公众号、博客、新闻等网页的正文内容,绕过反爬机制,纯文本输出。

Registry SourceRecently Updated
General

Compensation & Salary Benchmarking

Build competitive compensation plans using market data, salary bands, equity, bonuses, geographic pay adjustments, and retention risk scoring.

Registry SourceRecently Updated
68901kalin
aicodem-xmind-testcase | V50.AI