Exam4Training

Which off the following test sets will provide the best equivalence partitioning coverage?

Consider the following scenario for a metro fare system:

If you take the metro before 9:30 am or in the afternoon between 5:00 pm until 7:00 pm, you must pay full fare A saver ticket is available for metro rides between 9:30 am and 5:00 pm [both inclusive], and after 7:00 pm.

Which off the following test sets will provide the best equivalence partitioning coverage?
A . 9:29 am, 5 01 pm, 7:30 pm, 7:31 pm, 8:00 pm
B . 9:30 am, 4:00 pm, 6:00 pm, 8 00 pm, 8:30 pm
C . 8:00 am, 10:00 am, 5:15 pm, 7:01 pm, 11:00 pm
D . 9:30 am, 9:31 am, 4:59 pm, 5:00 pm, 8:00 pm

Answer: D

Explanation:

Equivalence partitioning is a technique that divides the input domain into classes of data that are expected to behave similarly. The test sets should cover one value from each equivalence class, as well as the boundary values between them. The equivalence classes for the metro fare system are: Before 9:30 am (full fare)

Between 9:30 am and 5:00 pm (saver ticket)

Between 5:00 pm and 7:00 pm (full fare)

After 7:00 pm (saver ticket)

The boundary values are 9:30 am, 5:00 pm, and 7:00 pm. Therefore, the test set that provides the best equivalence partitioning coverage is the one that includes one value from each equivalence class and the boundary values, which is option D.

Reference =

ISTQB Certified Tester Advanced Level Syllabus Technical Test Analyst1, page 2

Boundary Value Analysis and Equivalence Partitioning Testing2, section “Equivalence Partitioning” Equivalence Partitioning Method3, section “Example 1: Equivalence and Boundary Value”

Exit mobile version