Compatible with Major Latest Selenium Release - 4
1. Selenium 4.20.0
2. LOG4J 2.23.1
3. TestNG 6.14.3
4. Gradle 8.5
-
src/test/resources/testNG.xml-- All Environment related data goes here includingurl,browser,browser version&targetRuntargetRun- can belocal or browserStack, browser version is ignored iftargetRun=local -
src/main/java/com/company/project/utilities/SeleniumUtil.java-- Has Utility functions that can be used in Selenium tests including Selenium Web Driver Creation. -
src/main/java/com/company/project/pages-- All Web Pages Business logic goes here. -
src/test/java/com/company/project/tests-- All Tests go here, will have function calls to the page methods and will have assertions accordingly.
NOTE : ALL OTHER ENVIRONMENT RELATED DETAILS SHOULD BE IN TESTNG XML's so that tests can run in any environment without any code changes
`CI --> GRADLE TASK --> TESTNG XML --> TESTS`