From Requirement to Test Case: Automated QA Test Generation
Paste the following prompt into your AI chat to install this skill:
Please install @user_024716e2/qa-req2testcase-generator according to https://skillhub.cn/install/skillhub.md.
About this skill
The Challenge of Converting Requirements to Test Cases
QA teams face a fundamental challenge in the software development lifecycle: efficiently and accurately transforming product requirement documents (PRD) into executable test cases. Traditional approaches require testers to manually read, analyze requirements, then write test points and test cases. This process has several core problems:
- Missing critical test scenarios: Requirement documents are often complex and lengthy, making it easy for human analysis to overlook edge cases, exception flows, and compatibility scenarios
- Inconsistent test case quality: Different testers' experience levels lead to variations in coverage depth, granularity, and priority classification
- Repetitive work: Similar functional modules require testers to repeatedly execute the same analysis process
- Lack of standardized output: Test case formats, fields, and organization lack uniform standards, affecting subsequent test management and execution
How qa-req2testcase-generator Works
This skill transforms PRD requirement documents into standardized test case sets through a structured 6-paragraph workflow. It's not simple template filling, but a rule-based quality control process with multiple validation gates.
Core Execution Workflow
The skill uses a segmented execution model, where each phase has clear inputs, processing logic, and quality checks:
- Requirement parsing and initialization: Receives Chinese requirement documents (supports
.docx/.txtor direct text paste), performs format validation and basic parsing - Image content understanding: If the requirement contains interface screenshots or flowcharts, extracts key information through vision models
- Feature decomposition (P0+P1): Breaks down requirements into independent functional points and identifies core business processes
- Test point generation (P3+P4): Generates detailed test points based on functional points, including positive flows, exception scenarios, and boundary conditions
- Test case generation (P6): This is the core step—generates complete test cases for each test point, including preconditions, test steps, expected results, priorities, and smoke test markers
- Quality check and export (P7): Validates completeness, consistency, and coverage through quality gates, then exports to Excel format
Key Quality Control Mechanisms
The skill incorporates strict quality control to ensure the output test cases have practical value:
- Smoke test marking rules: Automatically identifies and marks
P0level smoke test cases, with proportion controlled at 10-15% - Deduplication check: Automatically detects and merges duplicate test points, avoiding redundant cases
- Quality gates: Each phase must pass quality validation before proceeding; otherwise, fixes and re-validation are required
- Breakpoint resumption: Supports resuming from the last execution point after interruption, without restarting the entire process
Applicable Scenarios and Important Limitations
This skill is primarily designed for QA test engineers and technical test leads, particularly suitable for:
- Requirements analysis for medium to large functional modules
- Projects needing standardized test case output
- Teams with varying tester experience levels
- Projects requiring rapid generation of test case baselines
Important Limitations
Key limitations to understand before use:
- Chinese requirement documents only: The skill is designed for Chinese PRDs and doesn't support English or other language requirement inputs
- Interactive execution: Must follow the 6-paragraph workflow step-by-step; each phase requires user confirmation with "继续" before proceeding
- Quality-first principle: Cannot skip quality checks for speed;
P7validation must pass - Strict rule adherence: Any custom modifications or attempts to bypass the execution workflow will cause quality checks to fail
This skill is not a "one-click generation" black box tool, but a collaborative process requiring tester participation. It helps testers analyze requirements more systematically, but the final test case quality still requires professional judgment and validation.
Use Cases
- When a test engineer receives a new product PRD document, they need to systematically decompose functional points and generate a complete test case set, avoiding omission of boundary conditions and exception scenarios during manual analysis
- After requirement review, the QA team needs to consolidate scattered test points into standardized test cases, ensuring uniform format, clear priorities, and comprehensive coverage
- For complex requirements with interface screenshots and flowcharts, visual information needs to be automatically extracted and supplemented into test case preconditions and expected results
- During iterative development, existing test cases need to be incrementally updated while maintaining consistency with original requirements and controlling test case deduplication rates
Best For
- QA engineers responsible for web application functional testing who need to quickly generate test cases covering main paths and exception scenarios before new feature releases
- Test team leads who need to ensure all members output test cases with uniform structure, quality standards, and smoke test annotations
- Test architects who need to transform business PRDs into executable test plans, particularly focusing on test point generation logic and quality gate mechanisms
- Testers participating in agile development who need to quickly respond to requirement changes and update test cases within short cycles while ensuring traceability
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.
This skill provides end-to-end automation for WeChat Mini Program development, covering building, debugging, previewing, testing, and publishing, with integrated code quality analysis and dependency management.