🤖 Day 9: Evaluate prompt quality and try to improve it

Original BDD Scenario

Feature: Ministry of Testing Website Login

As a registered user of the Ministry of Testing website,
I want to be able to log in with my credentials,
So that I can access exclusive content and manage my account.

Scenario: Successful User Login
Given I am on the Ministry of Testing website login page
When I enter my valid username “testuser@example.com” and password “Password123”
And I click the “Login” button
Then I should be logged in to my account
And I should see a welcome message “Welcome, Test User!”

After
Peer Review
Pilot Testing
Stakeholder Consultation

Updated Prompt: Create a BDD scenario for a new user launching Ministry of Testing for first time. User registers on the website and logs in successfully on the website.

Feature: Ministry of Testing Website Registration and Login

As a new user of the Ministry of Testing website,
I want to register for an account,
And then log in successfully to access the website’s features.

Scenario: New User Registration and Successful Login
Given I am on the Ministry of Testing website homepage
When I click on the “Register” or “Sign Up” link
Then I should be directed to the registration page

When I enter my full name "John Doe", email "johndoe@example.com", and a password "Welcome123"
And I confirm the password "Welcome123"
And I click the "Register" or "Create Account" button
Then I should see a success message "Registration successful! Please log in to continue."

When I am redirected to the login page
And I enter my registered email "johndoe@example.com" and password "Welcome123"
And I click the "Login" button
Then I should be logged in to my new account
And I should see a welcome message "Welcome, John Doe!"
1 Like