Logo: Relish

  1. Sign in

Project: Login 0.1

  • Change version

    1. 0.1

Login

In order to access protected features
As a User
I want to authenticate with my account

Background
Given
I am not authenticated
Scenarios
Empty username
Given
I have not entered a username
When
I press the Log On button
Then
I should see a dialog
And
I should see the message "You must enter a username. Please try again."
And
I should see the button labeled "OK"
Empty password
Given
I have entered a valid username
And
I have not entered a password
When
I press the Log On button
Then
I should see a dialog
And
I should see the message "You must enter a password. Please try again."
And
I should see the button labeled "OK"
Invalid username
Given
I have entered invalid_username
And
I have entered a password
When
I press the button labeled "Log On"
Then
I should see a dialog
And
I should see the message "You have entered an invalid username or password. Please try again."
And
I should see the button labeled "OK"
Examples:
invalid_username password
bogus1 bogus
bogus2 bogus
Valid username, invalid password
Given
I have entered username
And
I have entered a invalid_password
When
I press the button labeled "Log On"
Then
I should see a dialog
And
I should see the message "You have entered an invalid username or password. Please try again."
And
I should see the button labeled "OK"
Examples:
username invalid_password
valid1 bogus
valid2 bogus
Valid username and password
Given
I have entered username
And
I have entered a password
When
I press the button labeled "Log On"
Then
I should see a dialog
And
I should see the message "You have entered an invalid username or password. Please try again."
And
I should see the button labeled "OK"
Examples:
username password
valid1 valid
valid2 valid

Last published almost 6 years ago by Scott Hammer.