A tester is writing a BDD scenario for a login feature. The user story acceptance criteria state that users must be redirected to their dashboard upon successful login. Which scenario formulation adheres to BDD best practices?

Given the user is on the login page, When the user submits the login form, Then the dashboard is displayed.
Given the user enters a correct username and password, When the user clicks the login button, Then the user is successfully logged in.
Given the login form is filled out, When the user presses the login button, Then the user is redirected.
Given the user is on the dashboard, When the user logs in, Then the welcome message is displayed.
Verified Answer
Correct Option - a

To get all Infosys Certified Advanced Level Agile Technical Tester (ATT) Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram