Software Testing Prompts Examples
Software Testing Prompts Examples
AI testing prompts make it easier to automate the creation and execution of tests, freeing up testers from manual work and ensuring more comprehensive test coverage.
Examples
Some examples of AI testing prompts that might be used in a test automation framework or an AI-powered testing tool:
Functional Testing Prompts
âGenerate test cases for the login feature, including tests for valid credentials, invalid credentials, and empty input fields.â
âRun tests for the checkout process of the e-commerce site. Ensure that the correct price is displayed based on the items added to the cart.â
Boundary value Testing Prompts
âGenerate test cases to validate the date picker input, including testing the boundary dates (e.g., the earliest and latest possible dates).â
âTest the file upload feature by uploading various file sizes, including 0 KB, maximum allowed file size, and a file exceeding the limit.â
Security Testing Prompts
âTest the web application for SQL injection vulnerabilities. Simulate injecting common SQL commands like ‘DROP TABLE’ and ‘OR 1=1’ in the login form.â
âPerform authentication tests to check for password strength enforcement in the registration form (e.g., minimum 8 characters, uppercase letter, number).â
Performance Testing Prompts
âPerform load testing on the homepage with 1.x production load i.e. 1,000 simultaneous virtual users. Measure the page load time and server response time.â
âSimulate a stress test on the API with 500 concurrent requests to ensure the system handles high traffic smoothly without crashing.â
Exploratory Testing Prompts
âExplore the checkout flow and randomly interact with various elements to detect unexpected behavior or UI issues.â
âSimulate the behavior of a user who frequently switches between different pages, adds and removes items from the cart, and tests for stability.â
Regression Testing Prompts
âGenerate test cases to validate that the recent code update didnât break existing functionalities, such as login, account settings, and order history pages.â
âRun regression tests after the recent release to ensure that the user profile update feature still works as expected.â
API Testing Prompts
âGenerate test cases for the âPOST /loginâ API, testing both valid login requests and invalid ones (e.g., wrong password, missing parameters).â
âTest the âGET /usersâ API for different query parameters and validate the returned data matches the expected user list.â
Usability Testing Prompts
âGenerate test cases to validate that error messages are displayed when the user submits an incomplete form (e.g., missing required fields like name or email).â
âSimulate a user journey from registration to profile editing to ensure all UI elements are clear, eas