whart-test

7
0
Source

WHartTest测试管理平台工具集。用于管理项目、模块、测试用例的增删改查,以及截图上传和drawio图表操作。当用户需要操作测试用例、查询项目信息、上传截图或创建编辑图表时使用。

Install

mkdir -p .claude/skills/whart-test && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2815" && unzip -o skill.zip -d .claude/skills/whart-test && rm skill.zip

Installs to .claude/skills/whart-test

About this skill

WHartTest 测试管理平台

快速开始

# 设置环境变量
export WHARTTEST_BACKEND_URL="http://your-backend:8000"
export WHARTTEST_API_KEY="your-api-key"

# 执行操作
python whart_tools.py --action <action_name> [--参数名 参数值]

可用操作

项目管理

Action描述参数
get_projects获取所有项目列表
get_modules获取项目下的模块列表--project_id

用例管理

Action描述参数
get_levels获取用例等级列表
get_testcases获取模块下的用例列表--project_id, --module_id
get_testcase_detail获取用例详情--project_id, --case_id
add_testcase新增测试用例--project_id, --module_id, --name, --level, --precondition, --steps, --notes, --review_status, --test_type
edit_testcase编辑测试用例--project_id, --case_id, --name, --level, --module_id, --precondition, --steps, --notes, --review_status, --test_type, --is_optimization

截图管理

Action描述参数
upload_screenshot上传单张截图--project_id, --case_id, --file_path, --title, --description, --step_number, --page_url
upload_screenshots批量上传截图--project_id, --case_id, --file_paths(逗号分隔), --title, --description, --step_number, --page_url

截图路径约定:playwright-skill 保存的截图位于 SCREENSHOT_DIR 环境变量指定的目录。上传时只需传入文件名(无需路径),系统会自动从 SCREENSHOT_DIR 查找。

单张上传--file_path "case_11_step1.png" 批量上传--file_paths "step1.png,step2.png,step3.png"(最多10张,逗号分隔)

图表操作

Action描述参数
create_diagram创建drawio图表--xml, --page_name
edit_diagram编辑drawio图表--operations (JSON格式)

审核状态

--review_status 可选值:

  • pending_review - 待审核(默认)
  • approved - 通过
  • needs_optimization - 优化
  • optimization_pending_review - 优化待审核
  • unavailable - 不可用

测试类型

--test_type 可选值:

  • smoke - 冒烟测试
  • functional - 功能测试(默认)
  • boundary - 边界测试
  • exception - 异常测试
  • permission - 权限测试
  • security - 安全测试
  • compatibility - 兼容性测试

--is_optimization 标志(布尔型,无需传值):在 edit_testcase 时带上此标志,会自动将状态设为 optimization_pending_review(优化待审核),用于AI优化后的用例提交。一次调用即可完成编辑+状态更新。

  • ✅ 正确用法:python whart_tools.py --action edit_testcase --project_id 1 --case_id 51 ... --is_optimization
  • ❌ 错误用法:--is_optimization true(不要传值)

使用示例

# 获取项目列表
python whart_tools.py --action get_projects

# 获取项目1的模块
python whart_tools.py --action get_modules --project_id 1

# 获取用例列表
python whart_tools.py --action get_testcases --project_id 1 --module_id 5

# 新增用例
python whart_tools.py --action add_testcase \
  --project_id 1 \
  --module_id 5 \
  --name "登录功能测试" \
  --level P0 \
  --precondition "用户已注册" \
  --steps '[{"step_number":1,"description":"输入用户名","expected_result":"用户名显示"}]' \
  --notes "冒烟测试"

# 上传单张截图
python whart_tools.py --action upload_screenshot \
  --project_id 1 \
  --case_id 10 \
  --file_path "step1.png" \
  --title "登录页面截图" \
  --step_number 1

# 批量上传截图
python whart_tools.py --action upload_screenshots \
  --project_id 1 \
  --case_id 10 \
  --file_paths "step1.png,step2.png,step3.png" \
  --title "登录测试截图"

输出格式

所有操作返回 JSON 格式结果,便于解析处理。

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318399

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

340397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

452339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.