A mobile phone service provider uses a program that
computes the monthly bill of customers as follows:
Minimum Rs 300 for up to 120 calls
Plus Re 1 per call for the next 70 calls
Plus Rs 0.80 per call for the next 50 calls
Plus Rs 0.40 per call for any call beyond 220 calls.
Design test cases for this program using
equivalence class testing technique.
Answers
In this case the valid test cases will be:
minimum RS of 300 there was up to 120 calls.
Re 1 per call for the next 70 calls
Rs 0.80 per call for the next 50 calls
Rs 0.40 per call for any call beyond 220 calls.
And the invalid will be rupees less than 0.40 and rupees greater than 300.
Explanation:
Equivalence Class Testing, is an important software testing technique used by the team of testers for grouping and partitioning of the input data, which is then used for the purpose of testing the software product.
Equivalence classes are identified by selecting each input condition and by dividing it into two or more group.
For example, the product is of numbers 0 to 10, hence the invalid partition and test cases here will be less than 0, greater than 10, etc.
And the valid once will be number between 0 to 10.