Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Test Scenario 1
- ```gherkin
- Scenario: Successfully redirected to Telkom Transaction Page
- Given I've logged in as khoi
- And I'm on Sepulsa Homepage
- When I click "Tagihan Telkom" product
- Then Show Telkom Transaction Page
- ```
- #### Test Scenario 2
- ```gherkin
- Scenario: Failed inquiry with wrong customer number
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 0218900011 as customer number
- And I click "Cek Tagihan"
- Then I failed to Inquire
- And Show warning message (for wrong customer number) below input field
- And I'm still on Telkom Transaction Page
- ```
- #### Test Scenario 3
- ```gherkin
- Scenario: Failed inquiry with incorrect format customer number (char < 7 digit)
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 021890 as customer number
- And I click "Cek Tagihan"
- Then I failed to Inquire
- And Show warning message (for incorrect format customer number - char < 7 digit) below input field
- And I'm still on Telkom Transaction Page
- ```
- #### Test Scenario 4
- ```gherkin
- Scenario: Failed inquiry with incorrect format customer number (char > 19 digit)
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 02189002189002189000 as customer number
- And I click "Cek Tagihan"
- Then I failed to Inquire
- And Show warning message (for incorrect format customer number - char > 19 digit) below input field
- And I'm still on Telkom Transaction Page
- ```
- #### Test Scenario 5
- ```gherkin
- Scenario: Successfully Inquired with correct dummy number for 1 month bill
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 0218900001 as customer number
- And I click "Cek Tagihan"
- Then I successfully inquired
- And I redirected to Telkom Inquiry Page
- ```
- #### Test Scenario 6
- ```gherkin
- Scenario: Successfully Inquired with correct dummy number for > 1 month bill
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 0218800007 as customer number
- And I click "Cek Tagihan"
- Then I successfully inquired
- And I redirected to Telkom Inquiry Page
- ```
- #### Test Scenario 7
- ```gherkin
- Scenario: Failed Inquiry with correct dummy number for paid bill
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 0218800005 as customer number
- And I click "Cek Tagihan"
- Then I successfully inquired
- And I redirected to Telkom Inquiry Page with info bill has been paid
- ```
- #### Test Scenario 8
- ```gherkin
- Scenario: Informasi Tagihan shows the correct Customer Data
- Given I've logged in as khoi
- And I'm on Telkom Transaction Page
- When I input 0218900001 as customer number
- And I click "Cek Tagihan"
- Then I successfully inquired
- And I redirected to Telkom Inquiry Page with info bill has been paid
- And Informasi Tagihan shows the correct Customer Data
- ```
- #### Test Scenario 9
- ```gherkin
- Scenario: Redirected back to Telkom Transaction Page from Telkom Inquiry Page
- Given I've logged in as khoi
- And I've inquired my customer number
- When I click "Edit" button
- Then I redirected back to Telkom Transaction Page
- ```
- #### Test Scenario 10
- ```gherkin
- Scenario: Successfully redirected to Checkout Page for 1 month bill
- Given I've logged in as khoi
- And I've inquired my customer number with 0218900001
- And I'm on Telkom Inquiry Page
- When I click "Lanjutkan ke Pembayaran" button
- Then should be redirected to Checkout Page
- ```
- #### Test Scenario 11
- ```gherkin
- Scenario: Successfully redirected to Checkout Page for > 1 month bill
- Given I've logged in as khoi
- And I've inquired my customer number with 0218800007
- And I'm on Telkom Inquiry Page
- When I click "Lanjutkan ke Pembayaran" button
- Then should be redirected to Checkout Page
- ```
- #### Test Scenario 12
- ```gherkin
- Scenario: Detail transaksi section show the correct transaction's data
- Given I've logged in as khoi
- And I've inquired my customer number
- When I click "Lanjutkan ke Pembayaran" button
- Then should be redirected to Checkout Page
- And Detail transaksi section show the correct transaction's data
- ```
- #### Test Scenario 13
- ```gherkin
- Scenario: Successfully created transaction for 1 month bill
- Given I've logged in as khoi
- And I've inquired my customer number with 0218900001
- And I'm on Telkom Inquiry Page
- When I click "Lanjutkan ke Pembayaran" button
- And I redirected to Checkout Page
- And I click Kredivo as Payment Method
- And I click "Lanjutkan"
- Then Transaction created
- And I should be directed to Kredivo Payment Page
- ```
- #### Test Scenario 13
- ```gherkin
- Scenario: Successfully created transaction for > 1 month bill
- Given I've logged in as khoi
- And I've inquired my customer number with 0218800007
- And I'm on Telkom Inquiry Page
- When I click "Lanjutkan ke Pembayaran" button
- And I redirected to Checkout Page
- And I click Kredivo as Payment Method
- And I click "Lanjutkan"
- Then Transaction created
- And I should be directed to Kredivo Payment Page
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement