# Question in relation to equivalence class testing

• I'm trying to do revision on past paper questions on equivalence class testing and this is a question I'm getting rather confused about. As I understand it, there are three bits to defining this equivalence class (see bottom of Q for snippet). There is: 'age', 'claims', and 'condition'. To solve this question, one should state the actions, followed by the age brackets, then in another case, they should state the condition?

Something along these lines:

``condition = {(50% increase, 25% increase, £100 + letter, £75, £400, £200) | 0 ``

Would I be correct in assuming that the final product would be as follows:

``````c0 = {age is an element of condition | age | claims}
c1 = {age is an element of ¬condition | age | claims}
c2 = {age is an element of condition | ¬age | claims}
c3 = {age is an element of condition | age | ¬claims}
``````

Thanks, I greatly appreciate your help!

• You have six valid equivalence classes and four invalid equivalence classes. As Jeff says, there are 2 valid age classes and 3 valid claims classes, so in combination you've got six:

1. 0
2. 26
3. 0
4. 26
5. 0
6. 26

The invalid classes are:

1. Age < 0
2. Claims < 0
3. Age > 100
4. Claims > 10

A real-world test would include these as possible tests because each should trigger a different error (yes, this is outside the scope of the question):

1. Invalid data entered for age.
2. Invalid data entered for claims.
3. Too old to insure.
4. Too risky to insure.

2

2

2

2

2

4

2

2