Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Create Account
- As a visitor
- I want to create an account
- So that I can use exclusive features of the site
- Background: Fake data for Account Creation
- Given the existing <account_name> and <email>
- Examples:
- | account_name | email |
- | john.doe | john.doe@nowhere.com |
- | jane.doe | jane.doe@nowhere.com |
- Scenario: Valid Account Information
- When I visit the account creation page
- I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- And I click the submit button
- Then I should see see a confirmation page with the message "Account Created"
- And I should see a link to the login screen
- Examples:
- | username | email | password | challenge |
- | username_001 | email_001@nowhere.com | Qwerty!234 | Qwerty!234 |
- | username_002 | email_002@nowhere.com | Qwerty!234 | Qwerty!234 |
- | username_003 | email_003@nowhere.com | Qwerty432! | Qwerty432! |
- Scenario: Duplicate Username
- When I visit the account creation page
- And I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- Then I should see an error message with the message "The account is already taken"
- And I should see the username emphasized
- Examples:
- | username | email | password | challenge |
- | john.doe | email_001@nowhere.com | Qwerty!234 | Qwerty!234 |
- | jane.doe | email_002@nowhere.com | Qwerty!234 | Qwerty!234 |
- Scenario: Duplicate Email
- When I visit the account creation page
- And I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- Then I should see an error message with the message "The email is already taken"
- And I should see the email address emphasized
- Examples:
- | username | email | password | challenge |
- | some.username | john.doe@nowhere.com | Qwerty!234 | Qwerty!234 |
- | some.username | jane.doe@nowhere.com | Qwerty!234 | Qwerty!234 |
- Scenario: Not A Strong Password
- When I visit the account creation page
- And I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- Then I should see the error message "The password must be at least 6 characters long and contain at least 1 Capital letter, 1 Symbol, and 1 number"
- And I should see the password and challenge password emphasized
- Examples:
- | username | email | password | challenge |
- | username_001 | email_001@nowhere.com | qwerty | qwerty |
- | username_002 | email_002@nowhere.com | qwerty | qwerty |
- | username_003 | email_003@nowhere.com | qwerty | qwerty |
- Scenario: Passwords do not match
- When I visit the account creation page
- And I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- Then I should see the error message "The password and challenge password do not match"
- And I should see the password and challenge password emphasized
- Examples:
- | username | email | password | challenge |
- | username_001 | email_001@nowhere.com | Qwerty!234 | Qwerty1234 |
- | username_002 | email_002@nowhere.com | Qwerty!234 | Qwerty1234 |
- | username_003 | email_003@nowhere.com | Qwerty432! | Qwerty1234 |
- Scenario: Long Wait Time
- When I visit the account creation page
- And I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- And the server takes longer than 10 seconds to respond
- Then I should see the error message "Error: The server did not respond"
- Scenario: Internal Server Error
- When I visit the account creation page
- And I use <username> as the username
- And I use <email> as the email
- And I use <password> as the password
- And I use <challenge> as the challenge password
- And the server returns a 500 error code
- Then I should see the error message "Error: There was a server error"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement