← Back to Skills Marketplace
根据用户输入的需求描述生成测试用例
by
newhackerman
· GitHub ↗
· v1.0.1
· MIT-0
281
Downloads
2
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install testcase-generator
Description
专业的测试用例生成技能。支持文本/文档输入,自动生成高质量测试用例。内置依赖检测、质量评分、多格式导出、测试数据生成、用例评审、增量更新等高级功能。支持自定义 prompt 和配置。
Usage Guidance
该技能内容与其描述一致:它包含若干用于提取需求、生成用例、评分、导出和生成测试数据的 Python 脚本。安装/运行前建议:1) 在隔离环境(虚拟环境或容器)中运行并先阅读脚本源代码;2) 不要以 root/管理员权限运行,避免把生成的数据传入会执行字符串内容的脚本;3) 注意 generate_testdata.py 会生成带有 XSS/SQL 注入/命令注入样本的测试数据——这些是用于安全测试的“恶意”示例,仅作为数据样本,切勿在不安全的上下文中直接 eval/执行或插入到 shell/数据库而不做消毒;4) 若担心持久化,检查或备份 ~/.openclaw/skills/test-case-generator/config.json;5) 若需要进一步确认安全性,可将技能代码在受控环境中运行并观察文件/网络行为(当前代码未发现外网传输或远程回连逻辑)。
Capability Analysis
Type: OpenClaw Skill
Name: testcase-generator
Version: 1.0.1
The bundle is a legitimate and well-structured test case generation utility. It includes scripts for extracting requirements from various file formats (PDF, Docx), generating test data, and exporting results to multiple formats like XMind and TestLink. While `run_all_tests.py` uses `subprocess.run(shell=True)` and `generate_testdata.py` contains strings for common attack vectors (e.g., SQL injection, command injection), these are strictly used as data for generating test suites and do not represent malicious execution on the host system. No evidence of data exfiltration or unauthorized persistence was found.
Capability Assessment
Purpose & Capability
技能名/描述、SKILL.md 中的说明与仓内脚本(生成用例、导出、质量评分、生成测试数据、增量对比、配置管理、评审等)一致。没有要求与该用途不符的外部凭据或二进制依赖。
Instruction Scope
SKILL.md 指示运行本仓内的 Python 脚本并读取用户提供的需求文档/用例 JSON——这与功能相符。但需要注意:脚本会读取任意由用户传入的本地文件(如 .docx/.pdf/.txt 和 用例 JSON),并将导出/配置写入用户主目录下的 ~/.openclaw/skills/test-case-generator/config.json,使用前应确认输入文件来源可信。
Install Mechanism
这是一个 instruction-only 包含脚本的包,没有 install spec、远程下载或第三方包自动安装步骤。仅提示通过 pip 安装几个常见解析库(python-docx, pdfplumber, openpyxl),这是合理且可见的。
Credentials
不请求任何环境变量或外部凭据,唯一的持久性是写入技能自身的配置文件到用户主目录。脚本内部生成的测试数据包含用于安全/异常测试的“恶意样本”(例如含有 '; rm -rf /'、XSS、SQL 注入 字符串等),这是测试数据生成器的预期行为,但应谨慎处理这些数据以免在不安全的执行上下文中被当作命令执行。
Persistence & Privilege
技能不会被强制始终启用(always:false),也不请求平台级权限。但 config_manager 会在用户主目录下创建/修改配置文件(~/.openclaw/skills/test-case-generator/config.json),这是合理的本地持久化,安装前应知晓并接受该写入位置。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install testcase-generator - After installation, invoke the skill by name or use
/testcase-generator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 文档更新,版本号由“2.0(完整版)”调整为“1.0.1”,内容未发生变更
- 无功能、脚本或配置的实际变动
- 适用于所有现有用户,无需额外操作
v1.0.0
Initial release with complete automated test case generation and advanced QA features:
- Supports input via text or document (.txt, .docx, .pdf) for automatic, high-quality test case generation.
- Includes dependency checking, quality scoring (across 5 dimensions), duplicate detection, incremental updates, and bulk review tools.
- Enables exporting test cases in multiple formats: CSV, Markdown, JSON, XMind, TestLink XML.
- Automatically generates test data and allows full configuration of prompts, export formats, and priority rules.
- Comes with management scripts for configuration, requirement diff analysis, and troubleshooting support.
Metadata
Frequently Asked Questions
What is 根据用户输入的需求描述生成测试用例?
专业的测试用例生成技能。支持文本/文档输入,自动生成高质量测试用例。内置依赖检测、质量评分、多格式导出、测试数据生成、用例评审、增量更新等高级功能。支持自定义 prompt 和配置。 It is an AI Agent Skill for Claude Code / OpenClaw, with 281 downloads so far.
How do I install 根据用户输入的需求描述生成测试用例?
Run "/install testcase-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 根据用户输入的需求描述生成测试用例 free?
Yes, 根据用户输入的需求描述生成测试用例 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 根据用户输入的需求描述生成测试用例 support?
根据用户输入的需求描述生成测试用例 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 根据用户输入的需求描述生成测试用例?
It is built and maintained by newhackerman (@newhackerman); the current version is v1.0.1.
More Skills