Advertisement
khoionion

[ALICANTO] BDD API Integration - Telkom

Oct 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. #### Test Scenario 1
  2. ```gherkin
  3. Scenario: Successfully redirected to Telkom Transaction Page
  4. Given I've logged in as khoi
  5. And I'm on Sepulsa Homepage
  6. When I click "Tagihan Telkom" product
  7. Then Show Telkom Transaction Page
  8. ```
  9.  
  10. #### Test Scenario 2
  11. ```gherkin
  12. Scenario: Failed inquiry with wrong customer number
  13. Given I've logged in as khoi
  14. And I'm on Telkom Transaction Page
  15. When I input 0218900011 as customer number
  16. And I click "Cek Tagihan"
  17. Then I failed to Inquire
  18. And Show warning message (for wrong customer number) below input field
  19. And I'm still on Telkom Transaction Page
  20. ```
  21.  
  22. #### Test Scenario 3
  23. ```gherkin
  24. Scenario: Failed inquiry with incorrect format customer number (char < 7 digit)
  25. Given I've logged in as khoi
  26. And I'm on Telkom Transaction Page
  27. When I input 021890 as customer number
  28. And I click "Cek Tagihan"
  29. Then I failed to Inquire
  30. And Show warning message (for incorrect format customer number - char < 7 digit) below input field
  31. And I'm still on Telkom Transaction Page
  32. ```
  33.  
  34. #### Test Scenario 4
  35. ```gherkin
  36. Scenario: Failed inquiry with incorrect format customer number (char > 19 digit)
  37. Given I've logged in as khoi
  38. And I'm on Telkom Transaction Page
  39. When I input 02189002189002189000 as customer number
  40. And I click "Cek Tagihan"
  41. Then I failed to Inquire
  42. And Show warning message (for incorrect format customer number - char > 19 digit) below input field
  43. And I'm still on Telkom Transaction Page
  44. ```
  45.  
  46. #### Test Scenario 5
  47. ```gherkin
  48. Scenario: Successfully Inquired with correct dummy number for 1 month bill
  49. Given I've logged in as khoi
  50. And I'm on Telkom Transaction Page
  51. When I input 0218900001 as customer number
  52. And I click "Cek Tagihan"
  53. Then I successfully inquired
  54. And I redirected to Telkom Inquiry Page
  55. ```
  56.  
  57. #### Test Scenario 6
  58. ```gherkin
  59. Scenario: Successfully Inquired with correct dummy number for > 1 month bill
  60. Given I've logged in as khoi
  61. And I'm on Telkom Transaction Page
  62. When I input 0218800007 as customer number
  63. And I click "Cek Tagihan"
  64. Then I successfully inquired
  65. And I redirected to Telkom Inquiry Page
  66. ```
  67.  
  68. #### Test Scenario 7
  69. ```gherkin
  70. Scenario: Failed Inquiry with correct dummy number for paid bill
  71. Given I've logged in as khoi
  72. And I'm on Telkom Transaction Page
  73. When I input 0218800005 as customer number
  74. And I click "Cek Tagihan"
  75. Then I successfully inquired
  76. And I redirected to Telkom Inquiry Page with info bill has been paid
  77. ```
  78.  
  79. #### Test Scenario 8
  80. ```gherkin
  81. Scenario: Informasi Tagihan shows the correct Customer Data
  82. Given I've logged in as khoi
  83. And I'm on Telkom Transaction Page
  84. When I input 0218900001 as customer number
  85. And I click "Cek Tagihan"
  86. Then I successfully inquired
  87. And I redirected to Telkom Inquiry Page with info bill has been paid
  88. And Informasi Tagihan shows the correct Customer Data
  89. ```
  90.  
  91. #### Test Scenario 9
  92. ```gherkin
  93. Scenario: Redirected back to Telkom Transaction Page from Telkom Inquiry Page
  94. Given I've logged in as khoi
  95. And I've inquired my customer number
  96. When I click "Edit" button
  97. Then I redirected back to Telkom Transaction Page
  98. ```
  99.  
  100. #### Test Scenario 10
  101. ```gherkin
  102. Scenario: Successfully redirected to Checkout Page for 1 month bill
  103. Given I've logged in as khoi
  104. And I've inquired my customer number with 0218900001
  105. And I'm on Telkom Inquiry Page
  106. When I click "Lanjutkan ke Pembayaran" button
  107. Then should be redirected to Checkout Page
  108. ```
  109.  
  110. #### Test Scenario 11
  111. ```gherkin
  112. Scenario: Successfully redirected to Checkout Page for > 1 month bill
  113. Given I've logged in as khoi
  114. And I've inquired my customer number with 0218800007
  115. And I'm on Telkom Inquiry Page
  116. When I click "Lanjutkan ke Pembayaran" button
  117. Then should be redirected to Checkout Page
  118. ```
  119.  
  120. #### Test Scenario 12
  121. ```gherkin
  122. Scenario: Detail transaksi section show the correct transaction's data
  123. Given I've logged in as khoi
  124. And I've inquired my customer number
  125. When I click "Lanjutkan ke Pembayaran" button
  126. Then should be redirected to Checkout Page
  127. And Detail transaksi section show the correct transaction's data
  128. ```
  129.  
  130. #### Test Scenario 13
  131. ```gherkin
  132. Scenario: Successfully created transaction for 1 month bill
  133. Given I've logged in as khoi
  134. And I've inquired my customer number with 0218900001
  135. And I'm on Telkom Inquiry Page
  136. When I click "Lanjutkan ke Pembayaran" button
  137. And I redirected to Checkout Page
  138. And I click Kredivo as Payment Method
  139. And I click "Lanjutkan"
  140. Then Transaction created
  141. And I should be directed to Kredivo Payment Page
  142. ```
  143.  
  144. #### Test Scenario 13
  145. ```gherkin
  146. Scenario: Successfully created transaction for > 1 month bill
  147. Given I've logged in as khoi
  148. And I've inquired my customer number with 0218800007
  149. And I'm on Telkom Inquiry Page
  150. When I click "Lanjutkan ke Pembayaran" button
  151. And I redirected to Checkout Page
  152. And I click Kredivo as Payment Method
  153. And I click "Lanjutkan"
  154. Then Transaction created
  155. And I should be directed to Kredivo Payment Page
  156. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement