This is a demo project on Selenium + Page Object Model Design Pattern + TestNG + Java.
This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.
chrome
, headless-chrome
, firefox
, headless-firefox
, edge
, ie
or safari
Maven Profile as the browserdev
, qa
, uat
, pre-prod
or prod
Maven Profile as the environmentsrc/test/java
folderRun
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.
Copyright 2023 MaxSoft.