0
2.3kviews
Explain Equivalence partitioning with respect to equivalence classes. OR What is equivalence partitioning? Give example. OR Describe equivalence partitioning with example.
1 Answer
0
91views
  • Equivalence partitioning is a software technique that involves identifying a small set of representative input values that produce as much different output condition as possible.

  • This reduces the number of permutation & combination of input, output values used for testing, thereby increasing the coverage and reducing the effort involved in testing.

  • The set of input values that generate one single expected output is called a partition. When the behavior of the software is the same for a set of values, then the set is termed as equivalence class or partition.

  • Example: An insurance company that has the following premium rates based on the age group. A life insurance company has base premium of \$ 0.50 for all ages. Based on the age group, an additional monthly premium has to pay that is as listed in the table below. For example, a person aged 34 has to pay a premium=\$ 0.50 +\$1.65=$2.15

Age Group Additional Premium
Under 35 \$ 1.65
35-59 \$ 2.87
60+ \$ 6.00
  • Based on the equivalence portioning technique, the equivalence partitions that are based on age are given below:

  • Below 35 years of age (valid input)

  • Between 35 and 59 years of age (valid input)

  • Above 6 years of age (valid input)

  • Negative age (invalid input)

  • Age as 0(invalid input)

  • Age as any three-digit number (valid input)

Please log in to add an answer.