QuantumLeap – E-Commerce Test Automation Framework is a portfolio-ready automation project designed to validate both UI and API functionality of modern applications under test. The framework is built from scratch using best practices, ensuring scalability, maintainability, and reusability.
The framework is portfolio-ready and hosted on GitHub, showcasing expertise in Selenium, TestNG, REST Assured, Cucumber BDD, and Extent Reports.
Applications Under Test (AUT):
- Web Application: Sauce Labs Demo E-Commerce Site
- REST API: ReqRes API
- Programming Language: Java
- Build & Dependency Management: Maven
- UI Automation: Selenium WebDriver
- Test Framework: TestNG
- BDD Framework: Cucumber (Gherkin)
- API Automation: REST Assured
- Reporting: Extent Reports
- Browser Management: WebDriverManager
- Framework Architecture:
- Page Object Model (POM) design pattern with separate classes for each page:
LoginPage,ProductsPage,CartPage,CheckoutPage. - Efficient locators using CSS Selectors and XPath.
- Page Object Model (POM) design pattern with separate classes for each page:
- Test Cases:
- Data-driven login tests using
@DataProvider(standard user, locked-out user, performance glitch user). - End-to-End purchase flow test: login → add to cart → verify cart → checkout → confirm order.
- Data-driven login tests using
- Advanced Features:
- Explicit Waits for synchronization.
- Automatic screenshots on test failure.
- JavaScriptExecutor for advanced interactions (scrolling, clicking).
- Feature Files: Gherkin
.featurefiles describing scenarios such as "Add Item to Cart". - Step Definitions: Reusable methods calling POM classes.
- Execution: Cucumber tests executed via TestNG runner.
- CRUD Operations using REST Assured:
- GET: Fetch list of users and validate response.
- POST: Create new user and assert response.
- PUT: Update existing user and verify response.
- Test Reporting: Integrated Extent Reports showing the status of UI and API tests, including screenshots for failures.
- Performance Testing Plan: Document detailing login functionality performance with 50 concurrent users, monitoring response time, throughput, and error rate.
- Security Testing Scenarios:
- Authentication Bypass: Testing access to protected pages without login.
- Input Validation (XSS): Testing reflected XSS vulnerabilities in login fields.
Project setup
Go to File → Import → Existing Maven Project
Select the project folder → Finish
Maven will download dependencies.
Update Maven
Right-click pom.xml → Maven → Update Project
Run Tests(testng.xml and apitestng.xml)
Open src/test/java
Right-click a test class → Run As → TestNG Test
View Reports
test-output/ folder
open reports/ExtentReport.html