Skip to content

This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.

License

Notifications You must be signed in to change notification settings

osandadeshan/selenium-java-web-automation-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Application Automation Using Selenium & TestNG (Cross Browsers)

This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.

Selenium Java Web UI Automation CI

Prerequisites

  1. Java
  2. Maven
  3. Chrome

How to run tests

  1. Using IntelliJ IDEA

    • Go to Maven Profiles
    • Select chrome, headless-chrome, firefox, headless-firefox, edge, ie or safari Maven Profile as the browser
    • Select dev, qa, uat, pre-prod or prod Maven Profile as the environment
    • Select the test classes on the src/test/java folder
    • Right-click and click on Run
  2. Using Command Line

    • To run the smoke test suite in Firefox browser against the QA environment

      mvn clean test -Pfirefox,qa,smoke-test

    • To run the regression test suite in Safari browser against the UAT environment

      mvn clean test -Psafari,uat,regression-test

Note: By default, if no Maven profiles are selected, the tests will be executed on the chrome browser and in the dev environment.

License

MIT License MIT License

Copyright

Copyright 2023 MaxSoft.

About

This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.

Topics

Resources

License

Stars

Watchers

Forks

Languages