📝 Mastering Test Plans

A roadmap to bug-free software!

What is a Test Plan?
It is a formal document that lists what will be tested, how it will be tested, and what the expected result should be. We don't just "guess"—we plan!

Scenario 1: The Library Age Limit

Problem: A digital library allows users aged 5 to 18 to register. Any other age should be rejected.
Test Type Input Data Expected Outcome Reason
Normal 12 Accepted Well within the valid range.
Abnormal "Ten" Error Message Wrong data type (String instead of Integer).
Extreme 5 Accepted The minimum valid value.
Extreme 18 Accepted The maximum valid value.

Scenario 2: The Discount Code

Problem: A shop app accepts a percentage discount between 1% and 50%.
Test Type Input Data Expected Outcome Reason
Normal 25 Discount Applied Typical valid input.
Abnormal -10 Rejected / Error Negative numbers are invalid here.
Extreme 1 Discount Applied The lower boundary of the range.
Extreme 50 Discount Applied The upper boundary of the range.
Pro Tip: When building a test plan, always include a Boundary Test. For Scenario 2, testing 51 (the first invalid number outside the limit) is the best way to see if your if statements are working correctly!

Next Step: Open your Python IDE and try coding these limits! 🚀