Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. @NS-3754 @ManagerAuthorizer @IgnoreNO
  2. Feature: Create Alternative Id
  3. As a cashier
  4. I want to be able to create an alternative club id
  5. So that the customer can identify herself with that id and get bonus
  6.  
  7. Background:
  8. Given LOS Service is available for any loyalty card
  9.  
  10. Scenario: Create Alternative Club Id outside order
  11. Given POS client is in signed-on idle state
  12. And POS client is online towards alternative id webservice
  13. When user press button create alternative club id
  14. And customer card number dialog is presented
  15. And user enter valid bonus card information and press Enter
  16. And enter alternative club id dialog is presented
  17. And user enter reference number '1234567890' and press Enter
  18. Then alternative club id successfully created prompt is presented
  19. And user confirms info dialog by pressing OK
  20. And POS client should be in signed-on idle state
  21.  
  22. Scenario: Create Alternative Club Id outside order and back out before entering customer card number
  23. Given POS client is in signed-on idle state
  24. When user press button create alternative club id
  25. And customer card number dialog is presented
  26. And user selects Cancel in alphanumeric prompt
  27. Then POS client should be in signed-on idle state
  28.  
  29. Scenario: Create Alternative Club Id outside order and back out after entering customer card number
  30. Given POS client is in signed-on idle state
  31. When user press button create alternative club id
  32. And customer card number dialog is presented
  33. And user enter valid bonus card information and press Enter
  34. And enter alternative club id dialog is presented
  35. And user selects Cancel in alphanumeric prompt
  36. Then POS client should be in signed-on idle state
  37. And no interaction with alternative club id webservice has occured
  38.  
  39. Scenario: Create Alternative Club Id during ongoing transaction with club card
  40. Given POS client is in mid-order state
  41. And POS client is online towards alternative id webservice
  42. When a loyalty card is scanned
  43. And user press button create alternative club id
  44. And enter alternative club id dialog is presented
  45. And user enter reference number '1234567890' and press OK
  46. Then alternative club id successfully created prompt is presented
  47. And user confirms info dialog by pressing Enter
  48. And POS client is in mid-order idle state
  49.  
  50. Scenario: Create Alternative Club Id during ongoing transaction without club card
  51. Given POS client is in mid-order state
  52. And POS client is online towards alternative id webservice
  53. When user press button create alternative club id
  54. And customer card number dialog is presented
  55. And user enter valid bonus card information and press Enter
  56. And enter alternative club id dialog is presented
  57. And user enter reference number '1234567890' and press Enter
  58. Then alternative club id successfully created prompt is presented
  59. And user confirms info dialog by pressing Enter
  60. And POS client is in mid-order idle state
  61.  
  62. Scenario: Create Alternative Club Id during ongoing transaction with invalid club card
  63. Given POS client is in mid-order state
  64. And POS client is online towards alternative id webservice
  65. When user press button create alternative club id
  66. And customer card number dialog is presented
  67. And user enter reference number '1234' and press Enter
  68. Then alternative club id invalid club card prompt is presented
  69. And user selects Cancel in alphanumeric prompt
  70. And POS client is in mid-order idle state
  71.  
  72. Scenario: Create Alternative Club Id during ongoing transaction, back out after entering customer card number
  73. and check no interaction with alternative club id webservice has occurred
  74. Given POS client is in mid-order state
  75. And POS client is online towards alternative id webservice
  76. When user press button create alternative club id
  77. And customer card number dialog is presented
  78. And user enter valid bonus card information and press Enter
  79. And enter alternative club id dialog is presented
  80. And user selects Cancel in alphanumeric prompt
  81. Then POS client is in mid-order idle state
  82. And no interaction with alternative club id webservice has occured
  83.  
  84. Scenario: Create Alternative Club Id during ongoing transaction with club card and partial payment
  85. Given POS client is in mid-order state
  86. And POS client is online towards alternative id webservice
  87. When a loyalty card is scanned
  88. And user press button create alternative club id
  89. And enter alternative club id dialog is presented
  90. And user enter reference number '1234567890' and press Enter
  91. And alternative club id successfully created prompt is presented
  92. And user confirms info dialog by pressing Enter
  93. And POS client is in mid-order idle state
  94. And user select Cash feature
  95. And dialog Cash payment is presented
  96. And user enter partial amount and press Enter
  97. Then POS client is in mid-order idle state
  98.  
  99. Scenario: Create Alternative Club Id during ongoing transaction without club card and partial payment
  100. Given POS client is in mid-order state
  101. And POS client is online towards alternative id webservice
  102. And user press button create alternative club id
  103. And alternative club id enter club card prompt is presented
  104. And user enter valid bonus card information and press Enter
  105. And enter alternative club id dialog is presented
  106. And user enter reference number '1234567890' and press Enter
  107. And alternative club id successfully created prompt is presented
  108. And user confirms info dialog by pressing Enter
  109. And POS client is in mid-order idle state
  110. And user select Cash feature
  111. And dialog Cash payment is presented
  112. And user enter partial amount and press Enter
  113. Then POS client is in mid-order idle state
  114.  
  115. Scenario: Create Alternative Club Id during ongoing transaction and enter id that exceeds max character limit
  116. Given POS client is in mid-order state
  117. And POS client is online towards alternative id webservice
  118. When user press button create alternative club id
  119. And alternative club id enter club card prompt is presented
  120. And user enter valid bonus card information and press Enter
  121. And enter alternative club id dialog is presented
  122. And user enter reference number 'a3sv2a1sv54as6v5a46svas1v3a2s1v32a1v65as4v6a4' and press Enter
  123. Then alternative club id max length input prompt is presented
  124. And user selects Cancel in alphanumeric prompt
  125. And POS client is in mid-order idle state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement