Unleash ChatGPT's Power: Streamline Your STLC with Prompts
A series of prompts that you can use to streamline various phases of the Software Testing Life Cycle (STLC) with ChatGPT.
These prompts are designed to help you quickly generate useful outputs for your manual and automated testing tasks.
Requirement Analysis
Prompt:
Based on the following user story and acceptance criteria, generate a list of detailed test cases.
User Story: [Provide user story here]
Acceptance Criteria: [Provide acceptance criteria here]
==================================
Example:
User Story: As a user, I want to update my profile information so that my account details are current.
Acceptance Criteria:
- The profile update form should include fields for name, email, phone number, and address.
- The system should validate the email format and phone number.
- The user should receive a confirmation message upon successful update.
Generate detailed test cases for the above user story and acceptance criteria.
=============================================================
Test Planning
Prompt:
Create a test plan outline for the upcoming release, including scope, objectives, resources, schedule, and deliverables.
Details: [Provide release details here]
=======================
Example:
Details: The upcoming release includes new features, bug fixes, and performance improvements for the insurance web application. The goal is to ensure all existing functionalities remain unaffected.
Create a test plan outline for the above release.
=============================================================
Test Case Development
Prompt:
Generate comprehensive test cases for the following functionality.
Functionality: [Describe the functionality here]
=============================
Example:
Functionality: The login page includes fields for username and password. The system should validate credentials and display appropriate messages for success and failure.
Generate comprehensive test cases for the above login functionality.
=============================================================
Test Automation
Prompt:
Generate Selenium scripts in Java for the following test cases.
Test Cases: [List test cases here]
====================
Example:
Test Cases:
1. Verify login with valid username and password.
2. Verify login with invalid username.
Generate Selenium scripts in Java for the above test cases.
=============================================================
Test Execution
Prompt:
Analyze the following test execution logs and identify the cause of any failures.
Logs: [Provide test execution logs here]
=========================
Example:
Logs:
领英推è
1. LoginTest.testValidLogin - PASS
2. LoginTest.testInvalidUsername - FAIL (ElementNotInteractableException)
Analyze the above logs and identify the cause of the failure.
=============================================================
Defect Reporting
Prompt:
Generate a detailed defect report for the following scenario.
Scenario: [Describe the defect scenario here]
=============================
Example:
Scenario: During the execution of the login test with an invalid username, an ElementNotInteractableException was encountered.
Generate a detailed defect report for the above scenario.
=============================================================
Test Closure
Prompt:
Generate a comprehensive test summary report for the completed test cycle.
Details: [Provide details about the test cycle here]
================================
Example:
Details: The test cycle included regression testing for the insurance web application. All critical functionalities were tested, including new features, bug fixes, and performance improvements.
Generate a test summary report for the above test cycle.
=============================================================
Additional Prompts for Specific Tasks
Creating Test Data:
Generate sample test data for the following fields:
Fields: [List fields here]
==============
Example:
Fields: name, email, phone number, address
Generate sample test data for the above fields.
=============================================================
Reviewing and Improving Test Cases:
Review the following test cases and suggest any improvements.
Test Cases: [Provide test cases here]
=======================
Example:
Test Cases:
1. Verify login with valid username and password.
2. Verify login with invalid username.
Review the above test cases and suggest any improvements.
=============================================================
Generating Test Scripts for API Testing:
Generate test scripts for the following API endpoints using Postman.
Endpoints: [List API endpoints here]
=======================
Example:
Endpoints:
1. POST /api/login - Login with username and password.
2. GET /api/user/profile - Get user profile information.
Generate test scripts for the above API endpoints using Postman.
=============================================================
These prompts will help you efficiently utilize ChatGPT to generate valuable outputs for various phases of the STLC, enhancing your productivity and ensuring comprehensive testing coverage.