ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 232 - CTFL4 discussion

Report
Export

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, I want to register to the website, so that I 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?

A.
The new user enters valid values in the fields of the registration form, except for the email address, where he/she enters an e-mail address provided by a free online mail service that allow to create disposable email addresses. Then he/she is informed by the website about this issue.
Answers
A.
The new user enters valid values in the fields of the registration form, except for the email address, where he/she enters an e-mail address provided by a free online mail service that allow to create disposable email addresses. Then he/she is informed by the website about this issue.
B.
The new user enters valid values in the fields of the registration form, except for the first name, where he/she enters a first name with 10 characters that contains a number. Then he/she is informed by the website about this issue.
Answers
B.
The new user enters valid values in the fields of the registration form, except for the first name, where he/she enters a first name with 10 characters that contains a number. Then he/she is informed by the website about this issue.
C.
The user accesses the website with a username and password, and successfully places a purchase order for five items, paying by Mastercard credit card
Answers
C.
The user accesses the website with a username and password, and successfully places a purchase order for five items, paying by Mastercard credit card
D.
The new user enters valid values in all the fields of the registration form, confirms to accept all the terms and conditions, submits the registration request and then receives an e-mail containing the confirmation link to the e-mail address specified in the registration form
Answers
D.
The new user enters valid values in all the fields of the registration form, confirms to accept all the terms and conditions, submits the registration request and then receives an e-mail containing the confirmation link to the e-mail address specified in the registration form
Suggested answer: D

Explanation:

Acceptance Test-Driven Development (ATDD) tests focus on verifying whether the system meets the specified acceptance criteria. The most critical path to test first would be the scenario where everything is done correctly (happy path), ensuring the basic functionality works as expected.

The new user provides all valid data.

This ensures the registration form works and the user receives a confirmation email.

This test covers the basic functionality and will help verify that the primary use case is handled correctly before testing invalid or edge cases.

asked 18/09/2024
Ben Johnson
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first