metersphere-sync

Synchronize AI-generated test cases and verification data to MeterSphere.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/taptap/agents-plugins --skill metersphere-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metersphere-sync
Source: https://github.com/taptap/agents-plugins/tree/main/plugins/test/skills/metersphere-sync
Command: npx skills add https://github.com/taptap/agents-plugins --skill metersphere-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pycryptodome.

What problem does it solve?

This Skill automates the tedious, error-prone process of publishing AI-generated test cases into MeterSphere, creating or reusing test plans, and optionally writing back verification results so QA teams can move from case generation to execution faster.

Core Features & Use Cases

  • Bulk import and module creation: Group cases by module, create nested child modules, and tag imports with "AI 用例生成".
  • Test plan management: Find-or-create a plan under AI workflow classification and associate imported cases idempotently.
  • Verification result backwrite: Map verification_cases to plan cases using requirement bridges and auto-mark Pass/Failure/Prepare based on configurable confidence thresholds.
  • Smoke-test safety and reporting: Consume smoke_test_report to downgrade execution when P0 defects exist and produce comprehensive ms_sync_report.json, ms_case_mapping.json, and ms_plan_info.json.
  • Operational tooling: Uses a helper script to perform MeterSphere API actions and supports environment variable configuration for credentials and defaults.

Quick Start

Use metersphere-sync to import final_cases.json, create or reuse a test plan named "plan_name", and produce ms_sync_report.json.

Frequently Asked Questions about metersphere-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import AI-generated test cases into MeterSphere in bulk?

To bulk import AI-generated test cases into MeterSphere, provide a final_cases.json file and the Skill automatically groups cases by module, creates nested child modules, and tags the imported entries with 'AI 用例生成'.

Can I automatically create a test plan and associate imported cases in MeterSphere?

Yes, you can automatically find or create a test plan under the AI workflow classification and idempotently associate the imported test cases using the provided metersphere_helper.py script.

How do I write back AI verification results to MeterSphere test plans?

You can write back AI verification results to MeterSphere by providing a verification_cases.json file, which maps results to plan cases and auto-marks Pass, Failure, or Prepare statuses based on configurable confidence thresholds.

Does this workflow require specific environment variables for MeterSphere API credentials?

Yes, the workflow requires environment variables configured for MeterSphere API credentials and defaults, which are consumed by the operational helper script to securely perform platform operations.

How does smoke testing affect the MeterSphere test case sync process?

The smoke testing report affects the sync process by consuming a smoke_test_report.json file to downgrade execution automatically when P0 defects exist, ensuring test plan safety before publishing.