Test Case Writing
English | 简体中文
Module Overview
The Test Case Writing module provides professional test case design and writing guidance, helping testing teams create clear, complete, and maintainable test cases to ensure comprehensive test coverage and efficient test execution.
Core Features
📝 Complete Test Case Structure
- Test Case ID: Unique identifier for traceability
- Test Objective: Clear purpose and scope
- Preconditions: Required setup and prerequisites
- Test Steps: Detailed step-by-step instructions
- Expected Results: Clear expected outcomes
- Test Data: Specific test data requirements
🎯 Design Techniques
- Equivalence Partitioning: Divide input into valid/invalid classes
- Boundary Value Analysis: Test at boundaries of input domains
- Decision Table: Test complex business logic combinations
- State Transition: Test state changes and transitions
🔍 Quality Standards
- Clear and Concise: Easy to understand and execute
- Repeatable: Consistent results on repeated execution
- Independent: Can be executed independently
- Traceable: Linked to requirements and defects
🌐 Test Case Types
- Positive Test Cases: Valid input and expected behavior
- Negative Test Cases: Invalid input and error handling
- Boundary Test Cases: Edge cases and limits
- Integration Test Cases: Component interaction testing
File Description
Chinese Prompts
- File:
TestCaseWritingPrompt.md - Role: Senior Test Case Designer (10+ years experience)
- Use Case: Chinese project teams, test case writing requirements
English Prompts
- File:
TestCaseWritingPrompt_EN.md - Role: Senior Test Case Designer
- Use Case: International teams, English project environments
Lite Version Prompts
- File:
TestCaseWritingPrompt_Lite.md/TestCaseWritingPrompt_Lite_EN.md - Features: Quick start, focused on core test case elements
- Use Case: Quick test case creation and basic documentation
Usage Guide
Quick Start
Select Prompt File
- Full Version: Comprehensive test case design and writing
- Lite Version: Quick test case creation with essential elements
Prepare Input Materials
Requirements: [Feature requirements and specifications] User Stories: [User stories and acceptance criteria] Design Documents: [Technical design and architecture] Test Scenarios: [High-level test scenarios]Get Professional Test Cases
- Well-structured test cases
- Complete test coverage
- Clear execution steps
- Traceability to requirements
Related Modules
- Requirements Analysis - Analyze requirements for test case design
- Functional Testing - Execute functional test cases
- Automation Testing - Automate test cases
Learning Resources
Recommended Books
- "Software Testing Techniques"
- "Effective Software Testing"
- "Test Case Design Best Practices"
Online Resources
Contribution Guide
Welcome to contribute to the Test Case Writing module:
- Share Templates: Share test case templates and formats
- Best Practices: Share test case writing best practices
- Examples: Provide excellent test case examples
- Tool Tips: Share test case management tool tips
License
This module follows the MIT License. See the LICENSE file in the project root directory for details.
Write better test cases, achieve better coverage! 📝✨