0
808views
Describe equivalence partitioning with example.
1 Answer
0
15views
  • 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 Rs. 500 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=Rs. 500 + Rs. 1000=Rs. 1500

    enter image description here

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.