shape
shape

ISTQB-Foundation -chapter4-question49

  • Home
  • ISTQB-Foundation -chapter4-question49

4.5. Collaboration-based Test Approaches

FL-4.5.3 (K3) Use acceptance test-driven development (ATDD) to derive test cases

        4. You have just started designing test cases for the following user story:

As a customer,

I want to be able to filter search results by price range, so that I can find products within my budget more easily.

Acceptance criteria:

  1. The filter should work for all versions of the application from version 3.0 upwards
  2. The filter should allow the customer to set a price range with a minimum and a maximum price
  3. The search results should update dynamically as the customer adjusts the price range filter

 

In all test cases the precondition is as follows: there are only two products available, products A and B. Product A costs $100 and product B costs $110.

  Which of the following is the BEST example of a test case for this user story?

a)  Enter webpage and set filter to show prices between $90 and $100. Expected result: results show product A only. Set maximum price to $110. Expected result: results now include both products A and B      

b)  Enter webpage. Expected result: the default minimum and maximum prices are $100 and $110 respectively. Add product C to stock, with price $120. Refresh the client’s webpage. Expected result: the default maximum price changes to $120      

c)  Enter webpage and set filter to show prices between $90 and $115. Expected result: results show both products A and B. Change currency from USD to EUR. Expected result: the filter range changes correctly to EUR values, according to the current exchange rate           

d) Enter webpage with three different browsers: Edge, Chrome and Opera. In each browser set filter between $90 and $110. Expected result: results include both products A and B and the results layout is the same in all three browsers  

Answer Explanation