Advertisement
Guest User

Iteration 4-2 User Stories

a guest
Apr 29th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. Feature: Upload form info to CSV
  2.  
  3. As an admin
  4. When a user submits a vendor form
  5. The info for the fields are uploaded to "master" csv
  6.  
  7. Scenario: Update master csv with food form
  8. Given I am on the homepage
  9. When I go to the food page
  10. And I fill in "form[user]" with "John Doe"
  11. And I fill in "form[address]" with "123 Easy St."
  12. And I fill in "form[city]" with "Anytown"
  13. And I fill in "form[zip]" with "69420"
  14. And I fill in "form[name]" with "Cool company"
  15. And I fill in "form[email]" with "cc@gmail.com"
  16. And I fill in "form[busphone]" with "2222222222"
  17. And I fill in "form[cell]" with "3333333333"
  18. And I fill in "form[website]" with "www.frat.org"
  19. And I fill in "form[busID]" with "12321"
  20. And I press "Create Form"
  21. Then the user of "Cool company" in the csv should be "John Doe"
  22. And the address of "Cool company" in the csv should be "123 Easy St."
  23. And the city of "Cool company" in the csv should be "Anytown"
  24. And the zip of "Cool company" in the csv should be "69420"
  25. And the orgname of "Cool company" in the csv should be "Cool company"
  26. And the email of "Cool company" in the csv should be "cc@gmail.com"
  27. And the busphone of "Cool company" in the csv should be "2222222222"
  28. And the cell of "Cool company" in the csv should be "3333333333"
  29. And the website of "Cool company" in the csv should be "www.frat.org"
  30. And the busID of "Cool company" in the csv should be "12321"
  31. And the numTables of "Cool company" in the csv should be "0"
  32. And the numbrellas of "Cool company" in the csv should be "0"
  33. And the numChairs of "Cool company" in the csv should be "0"
  34. And the numTents of "Cool company" in the csv should be "0"
  35.  
  36. Scenario: Update master csv with retail form
  37. Given I am on the retail page
  38. And I fill in "form[user]" with "John Doe"
  39. And I fill in "form[address]" with "123 Easy St."
  40. And I fill in "form[city]" with "Anytown"
  41. And I fill in "form[zip]" with "69420"
  42. And I fill in "form[name]" with "Cool company"
  43. And I fill in "form[email]" with "cc@gmail.com"
  44. And I fill in "form[busphone]" with "2222222222"
  45. And I fill in "form[cell]" with "3333333333"
  46. And I fill in "form[website]" with "www.frat.org"
  47. And I fill in "form[busID]" with "12321"
  48. And I fill in "form[permitNum]" with "1111"
  49. And I fill in "form[product]" with "conalingus"
  50. And I press "Create Form"
  51. Then the user of "Cool company" in the csv should be "John Doe"
  52. And the address of "Cool company" in the csv should be "123 Easy St."
  53. And the city of "Cool company" in the csv should be "Anytown"
  54. And the zip of "Cool company" in the csv should be "69420"
  55. And the orgname of "Cool company" in the csv should be "Cool company"
  56. And the email of "Cool company" in the csv should be "cc@gmail.com"
  57. And the busphone of "Cool company" in the csv should be "2222222222"
  58. And the cell of "Cool company" in the csv should be "3333333333"
  59. And the website of "Cool company" in the csv should be "www.frat.org"
  60. And the busID of "Cool company" in the csv should be "12321"
  61. And the permitNum of "Cool company" in the csv should be "1111"
  62. And the product of "Cool company" in the csv should be "conalingus"
  63. And the numTables of "Cool company" in the csv should be "0"
  64. And the numChairs of "Cool company" in the csv should be "0"
  65. And the numbrellas of "Cool company" in the csv should be "0"
  66. And the numTents of "Cool company" in the csv should be "0"
  67. And the npType of "Cool company" in the csv should be "information"
  68.  
  69. Scenario: Update master csv with nonprofit form
  70. Given I am on the nonprofit page
  71. And I fill in "form[user]" with "John Doe"
  72. And I fill in "form[address]" with "123 Easy St."
  73. And I fill in "form[city]" with "Anytown"
  74. And I fill in "form[zip]" with "69420"
  75. And I fill in "form[name]" with "Cool company"
  76. And I fill in "form[email]" with "cc@gmail.com"
  77. And I fill in "form[busphone]" with "2222222222"
  78. And I fill in "form[cell]" with "3333333333"
  79. And I fill in "form[website]" with "www.frat.org"
  80. And I fill in "form[taxID]" with "12321"
  81. And I fill in "form[product]" with "conalingus"
  82. And I choose "orgtype_info"
  83. And I press "Create Form"
  84. Then the user of "Cool company" in the csv should be "John Doe"
  85. And the address of "Cool company" in the csv should be "123 Easy St."
  86. And the city of "Cool company" in the csv should be "Anytown"
  87. And the zip of "Cool company" in the csv should be "69420"
  88. And the orgname of "Cool company" in the csv should be "Cool company"
  89. And the email of "Cool company" in the csv should be "cc@gmail.com"
  90. And the busphone of "Cool company" in the csv should be "2222222222"
  91. And the cell of "Cool company" in the csv should be "3333333333"
  92. And the website of "Cool company" in the csv should be "www.frat.org"
  93. And the taxID of "Cool company" in the csv should be "12321"
  94. And the product of "Cool company" in the csv should be "conalingus"
  95. And the numTables of "Cool company" in the csv should be "0"
  96. And the numChairs of "Cool company" in the csv should be "0"
  97. And the numbrellas of "Cool company" in the csv should be "0"
  98. And the numTents of "Cool company" in the csv should be "0"
  99. And the npType of "Cool company" in the csv should be "information"
  100.  
  101. Scenario: Update master csv with commercial info form
  102. Given I am on the commercialInfo page
  103. And I fill in "form[user]" with "John Doe"
  104. And I fill in "form[address]" with "123 Easy St."
  105. And I fill in "form[city]" with "Anytown"
  106. And I fill in "form[zip]" with "69420"
  107. And I fill in "form[name]" with "Cool company"
  108. And I fill in "form[email]" with "cc@gmail.com"
  109. And I fill in "form[busphone]" with "2222222222"
  110. And I fill in "form[cell]" with "3333333333"
  111. And I fill in "form[website]" with "www.frat.org"
  112. And I fill in "form[busID]" with "12321"
  113. And I fill in "form[product]" with "conalingus"
  114. And I press "Create Form"
  115. Then the user of "Cool company" in the csv should be "John Doe"
  116. And the address of "Cool company" in the csv should be "123 Easy St."
  117. And the city of "Cool company" in the csv should be "Anytown"
  118. And the zip of "Cool company" in the csv should be "69420"
  119. And the orgname of "Cool company" in the csv should be "Cool company"
  120. And the email of "Cool company" in the csv should be "cc@gmail.com"
  121. And the busphone of "Cool company" in the csv should be "2222222222"
  122. And the cell of "Cool company" in the csv should be "3333333333"
  123. And the website of "Cool company" in the csv should be "www.frat.org"
  124. And the busID of "Cool company" in the csv should be "12321"
  125. And the product of "Cool company" in the csv should be "conalingus"
  126. And the numTables of "Cool company" in the csv should be "0"
  127. And the numChairs of "Cool company" in the csv should be "0"
  128. And the numbrellas of "Cool company" in the csv should be "0"
  129. And the numTents of "Cool company" in the csv should be "0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement