Skip to content

Web Automation Framework written in Java , Selenium , TestNG which have all the basic utilities covered implementing Page Object Model.

Notifications You must be signed in to change notification settings

ApaekshitRawat/WebAutomationFramework-Java-Selenium-TestNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebAutomationFramework-Java-Selenium-TestNG

o( ̄︶ ̄)o

Getting Started

These instructions will help you set up and run the tests in this automation framework.

Prerequisites

  • Java
  • Maven
  • Selenium WebDriver
  • TestNG

Installation

To install the framework, navigate to the project directory and run one of the following commands:

mvn clean install
or
mvn install

Running All Tests To run all tests ending with "test":

mvn test

Running Tests by Profile To run tests according to the profiles set in pom.xml:

mvn test -PRegression
mvn test -PPurchase
mvn test -PErrorValidation

To Run Tests in different browsers (default is chrome)

mvn test -PRegression -Dbrowser=Firefox
mvn test -PRegression -Dbrowser=Edge
mvn test -PRegression -Dbrowser=Chrome
mvn test -PRegression -Dbrowser=ChromeHeadless

Running Tests in Eclipse IDE If you prefer not to use the terminal, you can simply run the TestNG XML files located in the TestSuites directory of your Eclipse project. Built With

Java - The programming language used Selenium WebDriver - The web framework used for automation TestNG - Testing framework Maven - Dependency Management

Authors

Apaekshit Rawat

About

Web Automation Framework written in Java , Selenium , TestNG which have all the basic utilities covered implementing Page Object Model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published