Introduction
This documentation describes the process of automating regression tests for the RBI's payment system. The automation aims to ensure that new code changes do not introduce errors in existing functionalities.
Objective
The primary objective of this automation is to validate the integrity of the payment system after each code change or update, ensuring that all payment flows function as expected.
Test Environment
Development Env: Used for continuous development and initial testing.
Staging Server: Used for automated testing before any release.
Configurations
Node.js: Ensure you have Node.js installed. You can download it from Node.js.
Cypress: Install Cypress via npm.
Test Scenarios
Check if the user is able to place an order using Cash→ Already implemented by EMEACheck if the user is able to place an order using Sodexo
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Sodexo
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using Cheque Gourmet
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Cheque Gourmet
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using Cheque Gourmet Voucher
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Cheque Gourmet Voucher
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using Cart on Delivery
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Cart on Delivery
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using PayPal
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select PayPal
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using Bizum
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Bizum
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using Apple Pay
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Apple Pay
Select it and place the order
Check if the payment method used is the same as step c
Check if the user is able to place an order using Waylet
Access the whitelabel app.
Go to checkout page by delivery flow.
On payment screen, select Waylet
Select it and place the order
Check if the payment method used is the same as step c
Check if you can give a refund
Check if you can cancel a payment
Test Execution
Access the repository: https://github.com/rbilabs/intl-whitelabel-app/tree/master and go to workspaces/cypress-iberia folder (not ready yet)
On the terminal:
Run Cypress in Interactive Mode:
npx cypress open
Run Cypress in Headless Mode:
npx cypress run
Looks like this: (not ready yet)
Maintenance and Updates
Update Dependencies: Regularly update all dependencies to their latest versions.
Review Test Scripts: Periodically review and update test scripts to cover new features and changes.
Monitor Test Runs: Regularly monitor automated test runs to ensure they are functioning correctly and addressing any issues promptly.
Reports and Logs
(not ready yet)
Conclusion
...
Document Status |
| ||||
---|---|---|---|---|---|
Document Owner(s) |
Introduction
This document serves as a centralized repository for all Test Automation documents pertaining to Iberia. Its primary objective is to consolidate all relevant information regarding issues, test status, technical specifications, and other pertinent details in a single location.