← Back to Skills Marketplace
liuyun2025

Server Test Converter

by liuyun2025 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
241
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install server-test-converter
Description
将服务器测试命令 txt 文件转换为 pytest 测试用例。每个 txt 文件对应生成一个独立的 pytest 文件,命令合并到一个函数中执行。包含通用框架 test_framework.py,适配各种测试环境。
Usage Guidance
This skill appears to do what it says, but take these precautions before installing/using it: 1) Inspect your txt input files for sensitive data (passwords, tokens, IPs) because the generated pytest files will contain the command strings in cleartext. 2) Review and control the test_framework.py you use — the converter assumes you will implement send_a_cmd(); avoid hard-coding credentials in that implementation and prefer SSH keys or a secure credential store. 3) Run the converter and the produced tests in an isolated environment (non-production) until you verify behavior. 4) Verify output paths and permissions (the script writes to /home/admin/.openclaw/tytest). 5) If you need the tool to operate on a different path, update INPUT_DIR/OUTPUT_DIR in the script before running.
Capability Analysis
Type: OpenClaw Skill Name: server-test-converter Version: 1.0.1 The skill converts server test command files into pytest scripts but contains a code injection vulnerability in `convert_commands.py`. The `escape_cmd` function fails to properly sanitize input by only doubling single quotes without handling backslashes; a crafted command like `\'); <malicious_code> #` could break out of the string literal in the generated Python file to execute arbitrary code. While the tool's behavior aligns with its stated purpose, this lack of robust input sanitization in a code-generation context represents a significant security risk.
Capability Assessment
Purpose & Capability
Name/description match the implementation: the script reads txt files, parses commands, groups them by executor type, and emits pytest files and a reference test_framework. No unrelated binaries, services, or credentials are required.
Instruction Scope
SKILL.md and the script tightly bound to local paths under /home/admin/.openclaw and instruct the user to implement send_a_cmd() (SSH/subprocess/other). That is within scope, but the docs show examples with hard-coded credentials and the generated tests will contain the original command text verbatim — review inputs for sensitive data before generating or sharing outputs.
Install Mechanism
No install spec; this is instruction-only plus a Python script. Nothing is downloaded or written outside the declared output directory by the script itself.
Credentials
The skill declares no required environment variables or credentials. The examples in SKILL.md mention using paramiko or subprocess, but those are implementation suggestions the user must provide and do not create hidden credential requests.
Persistence & Privilege
always is false and the skill does not request persistent/autonomous privileges or modify other skills or global config.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install server-test-converter
  3. After installation, invoke the skill by name or use /server-test-converter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 新增通用测试框架 test_framework.py,支持自定义命令执行逻辑,适配多种测试环境 - 生成的 pytest 文件现在依赖 test_framework.py,简化了环境集成和命令适配 - SKILL.md 文档优化,详细说明框架用法、配置步骤和 send_a_cmd() 实现方法 - 保持每个 txt 文件生成一个独立的 pytest 文件机制,并支持自动命令去重
v1.0.0
- Initial release of server-test-converter. - Converts server/network test command txt files into Pytest test cases, one Pytest file per txt file. - Merges commands from each txt into a single function, supporting both R5 card and host shell execution. - Automatically deduplicates commands and filters out invalid lines (variables, templates, comments, blanks). - Supports batch conversion, outputs to standardized locations, and handles Chinese file names and name conflicts.
Metadata
Slug server-test-converter
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Server Test Converter?

将服务器测试命令 txt 文件转换为 pytest 测试用例。每个 txt 文件对应生成一个独立的 pytest 文件,命令合并到一个函数中执行。包含通用框架 test_framework.py,适配各种测试环境。 It is an AI Agent Skill for Claude Code / OpenClaw, with 241 downloads so far.

How do I install Server Test Converter?

Run "/install server-test-converter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Server Test Converter free?

Yes, Server Test Converter is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Server Test Converter support?

Server Test Converter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Server Test Converter?

It is built and maintained by liuyun2025 (@liuyun2025); the current version is v1.0.1.

💬 Comments