Skip to content

SAYAN-2000/Selenium-TestNG-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium-TestNG-Framework

Scenarios Covered

  • Logging in Using Username and Password - We Login into the application by using the correct username and password and verify it accordingly.
  • Add to Cart Scenario - In this scenario we navigate to the products page and then we pick a product and then click ADD TO CART Button to add it to cart. Then we click on the cart icon to check whether it is added to cart or not.
  • Validating the Filter Section - Here, we filter the list of products and validate it accordingly.
  • End-to-End Scenario - In this scenario, we add a product to cart, proceed to payment and navigate until we reach the ThankYou page.

About

In this project I have taken the Swag Labs Application and ran tests on it through Automation to validate different scenarios.

Pre-Requisites

  • Java should be installed and configured.
  • Maven should be installed and configured.
  • TestNGshould be Installed in your IDE.
  • Clone the files from Git repository using Git Bash.
  • Scoop should be Installed in your System to view the Allure Reports through Command Line.
  • Additionally you can configure Jenkins to run Daily Jobs.

Running Tests

To run tests we need to naviagate to the testng.xml file and the Right-Click and run as Testng Suite. Bring the neccessary changes to the xml file to run test individually. Or you can use mvn test command from thr command Line to run the tests mentioned in testng.xml file.

To run a Jenkins job you need to first configure Jenkins in your system. To configure Jenkins in your system follow this documentation. Then you need to create a new project and rub build now to see the tests and the console logs.