QuestionQ11

VerifiedChapter 4: Test Analysis and Design

Consider the following user story for an e-commerce website registration feature, which permits only registered users to make purchases:

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

The following acceptance criteria are defined for the user story:

[a] The registration form includes these fields: username, email address, first name, last name, date of birth, password, and repeat password.

[b] To submit a registration request, the new user must complete every registration-form field with valid values and agree to the terms and conditions.

[c] For an email address to be valid, it must not be supplied by free online mail services that permit creation of disposable email addresses. A dedicated error message must inform the new user when an invalid address is entered.

[d] For first name and last name to be valid, they must contain only alphabetic characters and be between 2 and 80 characters long. A dedicated error message must inform the new user when an invalid first name and/or last name is entered.

[e] After the registration request is submitted, the new user must receive an email containing the confirmation link at the email address entered in the registration form.

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

Explanation

ATDD typically begins with a positive scenario that confirms the expected sequence of activities without exceptions or error conditions. A successful registration scenario validates the core user-valued behavior and covers the stated requirements to enter valid values, accept the terms and conditions, submit the request, and receive a confirmation-link email. Negative validation scenarios are normally added afterward.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!