1. Insurance Domain White Box Testing Prompts
Policy Calculation Logic
- Prompt: Develop test cases that validate the policy premium calculation function by analyzing the algorithm used. Include tests for various inputs (age, coverage amount, policy type) to ensure accuracy and correctness.
Claims Approval Workflow
- Prompt: Write test cases to evaluate the claims approval process by mapping out the decision-making branches in the code. Ensure to test all possible pathways, including those that lead to claims being approved, denied, or flagged for review.
Data Validation Functions
- Prompt: Generate test cases that check the data validation functions for user inputs, ensuring that edge cases and boundary values are tested. Include tests for invalid inputs to verify that the system correctly handles them.
2. Booking Platform White Box Testing Prompts
Search Algorithm Efficiency
- Prompt: Create test cases to assess the performance and accuracy of the search algorithm used for finding available slots. Test various search criteria and ensure all logical branches are covered.
Booking Status Updates
- Prompt: Develop test cases for the logic that updates booking statuses. Ensure to test transitions between different states (e.g., confirmed, canceled, completed) and validate that the correct status is reflected in the database.
Business Rules Implementation
- Prompt: Write test cases to verify that business rules related to booking (e.g., minimum notice period, cancellation policies) are correctly implemented in the code. Include tests that trigger both valid and invalid scenarios.
3. Beauty Industry White Box Testing Prompts
Inventory Management Logic
- Prompt: Generate test cases to verify the logic behind the inventory management system, ensuring that stock levels are updated correctly when products are added or sold.
Discount Calculation
- Prompt: Create test cases that test the discount calculation functions, covering various scenarios such as percentage discounts, fixed amount discounts, and conditional discounts based on user loyalty.
User Review Validation
- Prompt: Develop test cases to ensure that the user review submission logic correctly validates inputs, checks for duplicates, and enforces content guidelines.
4. E-commerce Domain White Box Testing Prompts
Shopping Cart Logic
- Prompt: Write test cases to verify the shopping cart functionality, including tests for adding, removing, and updating products. Ensure that the cart accurately reflects the total cost and product quantities.
Payment Gateway Integration
- Prompt: Generate test cases that validate the integration of the payment gateway. Focus on the success and failure paths, ensuring that transactions are processed correctly and that error handling is robust.
User Authentication Flow
- Prompt: Develop test cases to assess the user authentication logic, covering scenarios for valid login attempts, incorrect passwords, and account lockouts after multiple failed attempts.
5. Social Media Domain White Box Testing Prompts
Feed Algorithm Logic
- Prompt: Create test cases that validate the logic of the feed algorithm, ensuring that user preferences and engagement metrics are properly considered when displaying posts.
Friend Request Handling
- Prompt: Write test cases to verify the logic for sending, accepting, and rejecting friend requests. Ensure that all possible states are covered, including interactions with blocked users.
Post Moderation Rules
- Prompt: Generate test cases that assess the post moderation logic, ensuring that posts are evaluated against community guidelines and that the correct actions are taken (e.g., warning, removal).
6. Banking Domain White Box Testing Prompts
Transaction Processing Logic
- Prompt: Develop test cases to validate the transaction processing algorithms, ensuring that both deposits and withdrawals are handled correctly, including checks for sufficient funds and transaction limits.
Interest Calculation
- Prompt: Create test cases that verify the accuracy of interest calculations for savings accounts, covering various interest rates and compounding periods.
Fraud Detection Algorithms
- Prompt: Write test cases to evaluate the effectiveness of fraud detection algorithms, ensuring that they correctly identify and flag suspicious transactions based on defined thresholds.
Conclusion
Harnessing White Box Testing techniques across various domains is essential for uncovering hidden bugs and ensuring the internal workings of software applications function as intended. By focusing on the logic and structure of the code, these prompts will guide testers in creating thorough test cases that explore every pathway and condition. This approach not only enhances product reliability but also builds confidence in the software's performance and security. Embrace these prompts to illuminate the quality of your applications in Insurance, Booking, Beauty, E-commerce, Social Media, and Banking domains.