Popular posts from this blog
BLACK BOX TESTING: BOUNDARY VALUE ANALYSIS AND EQUIVALENCE PARTITIONING
PROBLEM 1: DISCOUNT CALCULATION ON PURCHASE Problem Statement A discount is offered on purchases as follows: | Purchase Range | Discount Percentage | | 1000 Rs to 5000 Rs | 10% | | 5001 Rs to 10000 Rs | 20% | | Above 10000 Rs | 25% | Equivalence Classes Valid Classes: - VC1: Purchase amount 1000 to 5000 Rs → 10% discount - VC2: Purchase amount 5001 to 10000 Rs → 20% discount - VC3: Purchase amount above 10000 Rs → 25% discount Invalid Classes: - IC1: Purchase amount < 1000 Rs → No discount (0%) - IC2: Purchase amount = 0 Rs → Invalid - IC3: Purchase amount < 0 Rs → Invalid (Negative value) - IC4: Non-numeric input → Invalid Boundary Value Analysis Boundaries Identified: - Lower boundary of VC1: 1000 Rs - Upper boundary of VC1: 5000 Rs - Lower boundary of VC2: 5001 Rs - Upper boundary of VC2: 10000 Rs - Lower boundary of VC3: 10001 Rs Boundary Values: - Just below 1000: 999 Rs - At boundary 1000: 1000 Rs - Just above 1000: 1001 Rs - Just below 5000: 4999 Rs - At boundar...



Comments
Post a Comment