A software component for a game application calculates a player’s trophy level based on the following three input parameter values and their associated rules:
Time to Complete Game - Maximum 180 seconds. If the input value exceeds this amount, then the component outputs error message TIME1
Points Earned - minimum 5 to a maximum of 25. If the input value is outside this range the component outputs error message EM1
Level of Difficulty - from 1 to a maximum of 4. If the input value is outside this range the component outputs error message EM2
Assuming there are no error messages, a total score is then calculated by the component as (Points Earned * Level of Difficulty)
The trophy levels are:
Blue - total score equal to or less than 40
Silver - total score > 40 -
Gold - total score > 70 -
Diamond - total score > 80 -
Platinum - total score > 90 -
The component then outputs the correct trophy level
Applying the Equivalence Partition test design technique to this component and assuming that each error message and each trophy level represents a separate output partition, what percentage of the total output partitions have been exercised by the following suite of test cases?
Player 1 - Points earned 25, level of difficulty 2, time 60 seconds.
Player 2 - Points earned 20, level of difficulty 3, time 120 seconds.
Player 3 - Points earned 30, level of difficulty 1, time 200 seconds.
kocurc
2 months, 1 week ago