NibrazKhan / TestNG_Ecommerce_Automation

This is an automation testing project of an e-commerce site built using Selenium Web driver and TestNG as testing framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TestNG_Ecommerce_Automation

This is a complete project where an E-commerce site site is automated by writing test suites using selenium-webdriver and TestNg as testing framework.

The following key modules/pages are automated:

  • SignUp
  • Login
  • Search
  • Cart
  • Checkout

Key test cases(total 51) are written for each module and test suites created including the positive and negative test cases.
A state-transition flow of test-cases are designed and run like a user buying a product from an e-commerce site.
For failed test cases it will take a screenshot aswell at the point of failure.
The test runner codes can be extracted from this link.
The module test case steps code can be extracted from this link.
The test cases are written following standard test case format in this excel file: Test_cases.xlsx
View the excel file from this link.

Technology:

  • Tool: Selenium Webdriver
  • IDE: Intellij IDEA
  • Build tool: Gradle
  • Language: Java
  • Testing Framework : TestNG

Prerequisite:

  • Need to install jdk 11, gradle and allure
  • Configure Environment variable for jdk 11, gradle and allure
  • Clone this project and unzip it
  • Open the project folder
  • Double click on "build.gradle" and open it through IntellIJ IDEA
  • Let the project build successfully
  • Click on "Terminal" and run the automation scripts

Run the Automation Script by the following command:

gradle clean test 
  • Selenium will open the browser and start automating.
  • After automation to view allure report , give the following commands:
allure generate allure-results --clean -o allure-report
allure serve allure-results

Below is my allure overview report:

Overview

Here are the suites of this project:

suites

Here is the overall walkthrough of the project: Video
You can watch the sanity testing of Checkout module from here: Video

About

This is an automation testing project of an e-commerce site built using Selenium Web driver and TestNG as testing framework.


Languages

Language:Java 100.0%