The e-commerce business is increasing at a rapid pace especially since Covid. So it is very important to test e-commerce websites and applications such as Amazon and Flipkart. Regressive testing of e-commerce applications is vital to make your app more robust and secure.
Effective manual and automation test strategies should be designed to test eCommerce applications. We need to make sure that all the pages of the application are tested regressively.
A test plan which covers all payment gateway test cases should also be created so that all the transactions are validated and secured. Load and Security testing should also be part of the test strategy to avoid compromises on loading time and mobile responsiveness. It would also verify the application from attacks by intruders.
Is your eCommerce app performing as you intended? Find out by employing testers from testscenario. Get in touch with us!
Ecommerce application architecture
An eCommerce application has 4 important elements – Main Pages, Product Pages, Product Description Pages, and Shopping Cart. Understand these in detail to test e-commerce websites and applications efficiently.
Main Pages include homepage, privacy page, about us page, careers, etc. Product Page includes different options for the product such as size, color, and other attributes. Sorting and filtering features are considered as part of product type pages along with add-to-cart and wishlist features.
Product description page includes title, description, images, add to cart feature and additional info, etc. The shopping cart page should include payment options and removing a product from the cart.
Overall, an eCommerce website or an application includes different user roles such as customers, partners, staff, and service agents. Backend infrastructures include rules, analytics, security, logging, and content management.
The first layer which is revealed to the users is the presentation layer that includes the UI for mobile, desktops. Responsiveness is kept in mind when designing this presentation layer.
Core Functionality includes Content, Marketing, Inventory Management, Orders, and Catalog. Back-office functionality includes fulfillment, inventory, payment, and Catalog staging. The conceptional view is shown below.
Testing Ecommerce Website Workflow
Testing of the complete workflow is important to test an eCommerce application. Let’s look at the components of the workflow such as Login and Signup, Search Functionality, Sorting Feature, Filter Feature, Adding or removing a product to the cart, check out process, Order number generation, Invoice generation, and Payment gateway.
Below are the test cases for the online shopping system that will help you in testing your mobile application. These test scenarios are for an online shopping website that will cover all pages of your eCommerce application.
General Test Cases for E-commerce Websites & Applications
- User navigation through all the pages of the application
- None of the links in the applications should be broken.
- Company logo, products, prices, and their description should be visible.
- Products should be listed category-wise on the application.
- Products should be displayed which match the search criteria.
- Relevant products should be listed on the top of the search results page.
- Filtering functionality should work properly i.e., correct products are filtered when the filter is applied.
- Ensure correct count of products is displayed on search and filter.
- Sorting should be working correctly on all the pages – the products are sorted based on the sort of option.
- The product count should remain the same even when sorting is applied.
Product Page Test Cases
- Users should be able to select the desired attributes of the product-on-product page such as size, color, etc.
- Adding a product to the cart should be possible
- Checking whether users can add a product to the wish list.
- Users should be able to buy the product which is added to the cart once the user is signed in.
- Customers shouldn’t be able to add products to the cart when it is out of inventory.
- All the products which are added to the cart should be purchasable by the user.
- Verify error message is displayed on the UI when there is a limit on the products which can be purchased.
- Error message should be displayed on the UI when shipping is not available to the delivery location.
- All the payment methods should be displayed and all of the methods should be working correctly.
- Ensure email gets triggered to the email address or mobile number when a product is bought by the customer.
Payment Gateway Test Cases
- Verify product price is correct along with shipping charges, VAT. VAT and shipping charges should be correctly applied.
- Confirm VAT varies based on the number of products in the cart.
- Verify all the payment methods are correctly working such as net banking, credit/debit card, and PayPal using dummy numbers for testing.
- Ensure payment is refunded to the customer when a product is cancelled based on payment id.
- Make sure the emails and invoices sent to the customer after a product is purchased by the user.
- Verify emails are sent to the customer when the payment is successfully refunded to the user.
Search Functionality Test Cases
- Correct search results should show up for different types such as product name, brand name, or fuzzy search.
- Search results should be relevant to the search criteria
- Different sort options should work correctly after the search is applied.
- Search results should be displayed as per pagination.
- Verify search should work correctly based on different functionalities.
Shopping Cart Test Cases
- User should be able to add a product to the cart.
- Item count should be incremented when the user adds the same product again.
- Taxes should be applied according to the delivery location.
- User should be able to add items to the cart.
- User should be able to update items in the cart.
- Checkout should happen successfully for the items added to the cart.
- Shipping costs for different products added to the cart.
- Coupons should be applied successfully to the cart.
- Cart should retain the items even when the app is closed.
Post-Order Test Cases
- Email and order id should be sent after placement of order.
- Users should be able to cancel the order.
- There should be facility for users to track the order.
- Users should be able to return/replace the product post-delivery.
Test strategy for eCommerce website
While testing an eCommerce application test strategy and test plan should be designed carefully. Let’s look at the test plan for an online shopping cart which includes different types of testing needed for an eCommerce website
Browser Compatibility Testing
The application should be tested across main platforms such as Linux, Windows, and Mac.
Load and Performance Testing
Ecommerce applications should be tested regressively by applying high load and testers should make sure that the performance of the application is up to the mark. Ecommerce apps are used by a lot of people and there is a high surge in customers on big billion days or any sale days.
Testers should apply the maximum load and then test spikes in the database, the response time of APIs, and the network bandwidth. Testers should know the number of concurrent requests which can be handled by the application. Response time and loading time of the application should be tested in advance. Load balancers should be applied during extensive load testing.
All the functionalities of the application should be tested regressively based on different pages in the application. UI of the application is also taken care of in functional testing. Testers should make sure that the application should be responsive.
Testers should make sure that the application is secure from all attacks. Al the transactions which happen via your eCommerce application should be secured.
Customer data should not be leaked for data protection policy. There have been instances where data breaches happened in the past which cost businesses a lot of bucks. Hence, security should be the main testing for eCommerce applications.
How to test e-commerce websites manually
The application should be tested manually by covering all pages and all types of testing. UI and functional testing can be done manually by testers by executing all the test cases mentioned above. Effective test plans for online shopping websites and creating an effective test strategy for eCommerce websites are the heart of testing the application manually. Tracking statuses of test cases and raising bugs early in the SDLC will help in reducing the cost associated with the bugs.
How to test e-commerce websites using Selenium
Functional testing of an application can be done using e-commerce testing tools such as Appium which is based on top of selenium. Testers can automate almost all functional tests using Appium.
You can do performance testing using the JMeter tool whereas, for security testing ZAP OWASP is a great choice. For automating Unit testing, developers can use the core language used for application development.
The above e-commerce website testing checklist and test plan for an eCommerce website would have given an idea of testing eCommerce applications such as Flipkart.
Do you still have doubts about testing your eCommerce application? Contact us to know more. Get free estimation from us and make your product more robust with minimum bugs.
Testscenario is a software testing team with experienced and efficient software testers. We are equally adept at manual and automated testing. Get in touch with us today, and get the best in the business spot out bugs for you.