Test Cases for an ECommerce Website
By Neha Bharati, Community Contributor - August 3, 2022
Ecommerce websites are the most complex and intricate websites out there. This is due to their navigation, product categorisation, preview functionalities, and key features like payment gateway integrations.
So it is non-negotiable while developing eCommerce websites to undergo rigorous testing which ensures all the functionalities work together in harmony without affecting the user experience.
Why to Test Ecommerce Websites?
- Fierce competition in the ecommerce industry.
- By the year 2040, 95% of all purchases will be through eCommerce websites.
- Online shoppers who have a negative experience are 62% less likely to purchase from you in the future.
Whatever may be the platform, web or mobile, overcoming eCommerce website challenges such as cart abandonment, responsiveness, bad UX, unstable checkout procedures is of paramount importance.
Let’s look at the different types of eCommerce testing and how they ensure their websites fare well with consumers.
Types of Ecommerce Testing
Ecommerce websites function like any other web/mobile website. Hence it undergoes various types of testing such as:
- Functional Testing: If the tester wants to check if the checkout feature is working on the website and it is scoped only to that feature, it is called functional testing.
- Usability Testing: When a customer wants to buy an item, the whole flow of searching, adding to cart and making payment should be simple and easy. This is where usability testing kicks in.
- Security Testing: This ensures the safety of customers’ data by checking DENIAL OF SERVICE ATTACK, User Account security, Data confidentiality, content security, credit card security, disable non-essential services.SSL Certificate Validation When an eCommerce site stores customers’ sensitive information like their credit cards info, it should be rigorously tested so that the sensitive information does not leak out
- Performance Testing: When a single user is trying to access an ecommerce website, then it should be extremely responsive. Performance testing ensures that even when the app scales, with millions of users trying to access the site simultaneously, the site should be functional and not crash
- Mobile Application Testing: As there is a lot of penetration into the mobile space, a lot of users access the e-commerce websites on mobiles, So the website must have a good user experience across different mobile. This kind of testing is called mobile application testing.
Must Read: Tips to Optimze Shopify Website Speed
Test Cases for eCommerce websites
Now that we have the different types of testing applicable, it’s time to delve into the sample test cases for ecommerce website. To create practical test cases for ecommerce website, one must understand the structure of a typical site.
There are many features in an eCommerce website – hero carousel/slider, search, filter, product details, payments, checkout, etc. each having a has a pre-defined functionality.
For example, A search bar – every search should show throw relevant results, i.e., searching for electronics should show all categories like mobiles, TVs, cameras, etc.
Going ahead, we’ll pick a few significant features and list the test cases for eCommerce website:
General Test Cases
- The user should be able to navigate to all the pages in the website
- There should be a fallback page for any page load errors
- Verify that all the links and banners work properly
- Search results should be displayed with the most relevant item being shown first
- All data related to the product – title, price, images, description are all visible clearly
- Maintain a session for each user and test verify the session times out after a while
- Test for valid username and password
- Test “Forgot Password” and Reset Password functionality
- Validate If user is a registered or not, and if not provide an option to create account
- Show Login screen by default for registered user
- Test that all fields are mandatory
Seller Product Creation
For sellers who want to create their catalog, they should be able to add their products and this flow should be tested
- Test that authenticated sellers have access to authorized product creation panels under authorized categories
- Test the maximum product creation limit to avoid adding more products to the catalog
- Test that seller’s products are visible after a period of time
- Test the product creation process is working fine for the seller
- Test that there are no duplicate products
- Test what parameters the search is based on – for example, product name, brand name, category, etc
- Test if the search results are relevant
- Number of results to be displayed per page
- Test whether the search API is being called at every keystroke. (This isn’t recommended as it would unnecessarily cause multiple API calls to the database)
Example of a filter
- Test if the user can filter based on all the parameters on the page
- The user should be able to see results with default search criteria when at least one of the filter parameters isn’t mandatory
- Validation massages for invalid filter criteria
- When at least one filter criteria are required, and the user selects none, proper error messages to be shown
- Test that all the product details are displayed properly and there are no empty/invalid details displayed
- Product Images should be optimized for size and dimensions which further helps in performance testing.
- If there’s breadcrumb navigation, each link in the breadcrumb should be functional. Below is an example of breadcrumb navigation.
- All the links(size, Pincode check, etc) about the product should be functional
- Test that all items are added into the cart
- Test that all added items have at least a quantity, price, and delete option associated with it
- Test that the user is able to increase/decrease quantity from the cart
- If a user adds the same item to cart the quantity of that item should increase in the cart
- On closing the tab/leaving the site, the items should still be there in the cart on coming back on the website.
- User should be able to add coupons
- User should be shown the total amount with the necessary breakup as applicable
- User should be able to select the desired payment method
- On adding more items or increasing/decreasing quantity, the total should change accordingly
- Calculate shipping costs based on shipping methods
- Right address should be selected and the user should be able to edit/add address
- Perform security testing if in case the user’s credit card details need to be saved
- For returning customers, they should be redirected to log in for checkout
- User should be logged out after the session times out
- Emails/test confirmation when the order is confirmed
As you can see, there are many more tests or features an eCommerce website has and testing each of them is very time-consuming and requires effort. Thankfully there are a few tools and techniques available to ease the website testing process.
- One can go for automation test cases for ecommerce website across browsers, devices, and operating systems
- Test for responsiveness with mobile devices and also perform performance testing with Speedlab.
Testing Ecommerce Websites using Browserstack
- To test eCommerce websites, Browserstack Live is the most effective way of going about it and giving the above test cases a run. Users can log/sign up and test their website by giving the URL.
Let’s have a look at amazon.com with BrowserStack Live
Amazon.com loaded on BrowserStack Live
This is the Amazon homepage loaded on a macOS Monterey on Chrome browser. User can navigate through the website and test key features and website flow.
Let’s load the eBay website on Speedlab and have a look at its performance report.
Here is what the dashboard looks like provides a list of devices and browsers and operating systems. Based on your preference, you can choose the right device-OS-browser combination
On clicking Get Report, you see the following page. Once it is done loading the report is generated.
Some sample reports are already available in case one wants to look at them.
Here is the final report of the website and on scrolling down, you get the details of each parameter used to calculate the score. There are also recommendations that can be implemented to improve the score.
When building test scenarios for eCommerce businesses online, take the above sample test cases for ecommerce website into account. The essential part of eCommerce testing is whether the website successfully converts visitors to paying customers. One can make a detailed test plan, formulate test cases, and leverage such tools to perform their tests.
- It should also test well for accessibility both on mobile and web to ensure an inclusive user experience for people with disabilities.
- Ecommerce websites are very dynamic, with new features continuously being added to them, so test plans must be continuously updated to cater to such changes.
- Making the website responsive is also essential to improve conversion rates.
Of course, depending on the nature of the suite, more types of tests may be required. However, the tests described above must necessarily form a part of any QA blueprint pertaining to an eCommerce site. No matter which test case you consider, always remember to test them using a real device cloud like BrowserStack for accurate results.