The purpose of the project is to present a structure with basic functionalities for automated tests:
- Page Object Pattern
- Abstract Factory Pattern
- Method Chaining
- Extent Report 5
- Selenium Grid
- Parallel Execution with ThreadLocal
- Java 17
- Selenium WebDriver
- TestNG
- Lombok
Using the build plugin maven-surefire-plugin and configuring it with the suiteXmlFiles tag:
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/suites/${suite}.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
- Use -Dsuite=XmlSuiteName to call the suite
mvn clean test -Dsuite=smoke
in the src/main/resources directory are the files for creating the Grid using the elgalu/selenium image. After Docker is running, just run the start-grid file:
sh start-grid.sh
...