nerdexam
iSQI

CTFL_SYLL_4.0 · Question #137

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…

The correct answer is D. The new user enters valid values in all the fields of the registration form, confirms to accept all the. 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…

Test Analysis and Design

Question

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?

Options

  • AThe new user enters valid values in the fields of the registration form, except for the email
  • BThe new user enters valid values in the fields of the registration form, except for the first name,
  • CThe user accesses the website with a username and password, and successfully places a
  • DThe new user enters valid values in all the fields of the registration form, confirms to accept all the

How the community answered

(57 responses)
  • A
    4% (2)
  • B
    5% (3)
  • C
    14% (8)
  • D
    77% (44)

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.

Topics

#user stories#acceptance criteria#test case derivation#registration feature

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice