Prompt for Test Case Generation
Category: Test Case Design / Test Case Documentation
Description
Generate comprehensive test cases from requirement details, covering both typical use cases and edge cases. Facilitates systematic testing by clearly defining steps and expected results.
Prompt
Generate relevant test cases for the following requirement: [Add Requirement Details]. For each test, include Name, Description, Steps, and Expected Result. Consider both typical use cases and edge cases.
Why it works
This prompt guides ChatGPT to produce comprehensive test cases, ensuring all aspects of the requirement are covered, from standard operations to potential edge cases.
Sample output
Test Case 1: Name: Login with valid credentials Description: Verifies successful login with correct username and password. Steps: 1. Navigate to login page. 2. Enter valid username and password. 3. Click login. Expected Result: User is redirected to dashboard.