Istqb Certified Tester Foundation Level CTFL · Free Practice Question Medium

Question 34

Consider the following user story:

As an Online Shopper

I want to add items to my shopping cart

so that I can purchase them later.


Acceptance Criteria:

  • The user can log in to the shopping platform.

  • The user can search for items.

  • The user can add items to the shopping cart.

  • The user can view the shopping cart.

  • The user can remove items from the shopping cart.

  • The user can proceed to checkout with the items in the cart.

Which of the following is the BEST example of an ATDD test for this user story?

  • A

    Test if the user can view their order history

  • B

    Test if the user can add items to the shopping cart and then view the cart

  • C

    Test if the user can remove items from the wishlist

  • D

    Test if the user can update their account details

Reveal correct answer

Correct answer: B

A.

Incorrect. This does not relate to the user story about adding items to the shopping cart.

B.

Correct. This directly tests the acceptance criteria for adding and viewing items in the cart.

C.

Incorrect. The wishlist is not part of this user story.

D.

Incorrect. Account updates are not relevant to the specified user story.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need