Advertisement
Guest User

Untitled

a guest
Jun 13th, 2016
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. Feature: Create Account
  2.  
  3. As a visitor
  4. I want to create an account
  5. So that I can use exclusive features of the site
  6.  
  7. Background: Fake data for Account Creation
  8. Given the existing <account_name> and <email>
  9.  
  10. Examples:
  11.  
  12. | account_name | email |
  13. | john.doe | john.doe@nowhere.com |
  14. | jane.doe | jane.doe@nowhere.com |
  15.  
  16. Scenario: Valid Account Information
  17.  
  18. When I visit the account creation page
  19. I use <username> as the username
  20. And I use <email> as the email
  21. And I use <password> as the password
  22. And I use <challenge> as the challenge password
  23. And I click the submit button
  24. Then I should see see a confirmation page with the message "Account Created"
  25. And I should see a link to the login screen
  26.  
  27. Examples:
  28.  
  29. | username | email | password | challenge |
  30. | username_001 | email_001@nowhere.com | Qwerty!234 | Qwerty!234 |
  31. | username_002 | email_002@nowhere.com | Qwerty!234 | Qwerty!234 |
  32. | username_003 | email_003@nowhere.com | Qwerty432! | Qwerty432! |
  33.  
  34. Scenario: Duplicate Username
  35.  
  36. When I visit the account creation page
  37. And I use <username> as the username
  38. And I use <email> as the email
  39. And I use <password> as the password
  40. And I use <challenge> as the challenge password
  41. Then I should see an error message with the message "The account is already taken"
  42. And I should see the username emphasized
  43.  
  44. Examples:
  45.  
  46. | username | email | password | challenge |
  47. | john.doe | email_001@nowhere.com | Qwerty!234 | Qwerty!234 |
  48. | jane.doe | email_002@nowhere.com | Qwerty!234 | Qwerty!234 |
  49.  
  50. Scenario: Duplicate Email
  51.  
  52. When I visit the account creation page
  53. And I use <username> as the username
  54. And I use <email> as the email
  55. And I use <password> as the password
  56. And I use <challenge> as the challenge password
  57. Then I should see an error message with the message "The email is already taken"
  58. And I should see the email address emphasized
  59.  
  60. Examples:
  61.  
  62. | username | email | password | challenge |
  63. | some.username | john.doe@nowhere.com | Qwerty!234 | Qwerty!234 |
  64. | some.username | jane.doe@nowhere.com | Qwerty!234 | Qwerty!234 |
  65.  
  66. Scenario: Not A Strong Password
  67.  
  68. When I visit the account creation page
  69. And I use <username> as the username
  70. And I use <email> as the email
  71. And I use <password> as the password
  72. And I use <challenge> as the challenge password
  73. 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"
  74. And I should see the password and challenge password emphasized
  75.  
  76. Examples:
  77.  
  78. | username | email | password | challenge |
  79. | username_001 | email_001@nowhere.com | qwerty | qwerty |
  80. | username_002 | email_002@nowhere.com | qwerty | qwerty |
  81. | username_003 | email_003@nowhere.com | qwerty | qwerty |
  82.  
  83. Scenario: Passwords do not match
  84.  
  85. When I visit the account creation page
  86. And I use <username> as the username
  87. And I use <email> as the email
  88. And I use <password> as the password
  89. And I use <challenge> as the challenge password
  90. Then I should see the error message "The password and challenge password do not match"
  91. And I should see the password and challenge password emphasized
  92.  
  93. Examples:
  94.  
  95. | username | email | password | challenge |
  96. | username_001 | email_001@nowhere.com | Qwerty!234 | Qwerty1234 |
  97. | username_002 | email_002@nowhere.com | Qwerty!234 | Qwerty1234 |
  98. | username_003 | email_003@nowhere.com | Qwerty432! | Qwerty1234 |
  99.  
  100. Scenario: Long Wait Time
  101.  
  102. When I visit the account creation page
  103. And I use <username> as the username
  104. And I use <email> as the email
  105. And I use <password> as the password
  106. And I use <challenge> as the challenge password
  107. And the server takes longer than 10 seconds to respond
  108. Then I should see the error message "Error: The server did not respond"
  109.  
  110. Scenario: Internal Server Error
  111.  
  112. When I visit the account creation page
  113. And I use <username> as the username
  114. And I use <email> as the email
  115. And I use <password> as the password
  116. And I use <challenge> as the challenge password
  117. And the server returns a 500 error code
  118. Then I should see the error message "Error: There was a server error"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement