ISTQB Certified Tester Foundation Level v4.0 — Question 60

Consider the following user story about an e-commerce website's registration feature that only allows registered users to make purchases:

“As a new user, | want to register to the website, so that | can start shopping online”

The following are some of the acceptance criteria defined for the user story:

[a] The registration form consists of the following fields: username, email address, first name, last name, date of birth, password and repeat password.
[b] To submit the registration request, the new user must fill in all the fields of the registration form with valid values and must agree to the terms and conditions.
[c] To be valid, the email address must not be provided by free online mail services that allow to create disposable email addresses. A dedicated error message must be presented to inform the new user when an invalid address is entered.
[d] To be valid, the first name and last name must contain only alphabetic characters and must be between 2 and 80 characters long. A dedicated error message must be presented to inform the new user when an invalid first name and/or the last name is entered.
[e] After submitting the registration request, the new user must receive an e-mail containing the confirmation link to the e-mail address specified in the registration form.

Based only on the given information, which of the following ATDD tests is MOST LIKELY to be written first?

Answer options

Correct answer: D

Explanation

The correct answer is D because it directly addresses the successful completion of the registration process, which is the primary function of the user story. The other options focus on error scenarios or actions that are not part of the registration process, making them less likely to be prioritized in the initial testing phase.