/selenium-ui-tests

:heavy_check_mark: The objective of this project is to share some tools and techniques learned during my current journey as a QA. :speech_balloon:

Primary LanguageJava

Selenium-ui-tests

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

Language and frameworks

  • Java 17
  • Selenium WebDriver
  • TestNG
  • Lombok

Command line execution

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

Selenium Grid

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

Contribute! 🍻

...