Automation Testing Capstone Project
Create a Testing Framework for Sporty Shoes Website
Name : Ayush Raj
Email : [email protected]
Github : https://github.com/arayush841/ATE-CapstoneProject-AyushRaj-ayushra.git
Problem Statement and Motivation Real-Time Scenario: Sporty Shoes has an e-commerce website that has the following existing features in place:
I used https://neemans.com/ for the task.
• Users can view products; I wrote some functionality for that also. • For making purchases, user can login and signup for the same. • Users can add multiple items to their cart and checkout. • Users have a dashboard that lets them edit their profile, view past purchases, and view their cart • Once users do a checkout, the items are cleared from their cart and an order is generated which is stored in their order history The above application is already functional.
Task: The following tasks outline the testing framework creation:
- Add additional code to the original project to add a REST API module. This module will have two API endpoints: • Retrieve the list of all products in the store • Retrieve the list of all registered users
- Create Selenium scripts to test all the pages in the web app
- Do unit testing for all the backend classes and methods
- Create JMeter scripts to do load testing of the homepage and the product detail page
Execute TestNG:
- Import the project TestNGproject in eclipse IDE
- Find TestCase001.java
- Execute TestCase001 using TestNG
Execute Jmeter:
- Locate jmx file which is stored in loadTesting folder.
- In Jmeter import the .jmx file.
- Press ctrl r to run the recording.