On the pom.xml file you can choose between:
- Several OS: Windows, Mac, Linux.
- Several Browsers: Chrome, msedge, Firefox, IE.
- Several log level configuration: All, Debug, Info, Warn, Error, Fatal, Off.
You just need to change the following lines:
<!-- Test Browser -->
<!-- This Parameters select where run the test
[Remote ,Firefox ,Chrome ,msedge ,Internet Explorer] -->
<browser>YOUR_BROWSER</browser>
<!-- Test Operative System [linux, mac, windows]-->
<os>YOUR_OS</os>
<!-- Log Mode Section -->
<!-- Parameter for logger level use in this order to include the right information
[ALL > DEBUG > INFO > WARN > ERROR > FATAL > OFF]-->
<log.level>YOUR_LOG_MODE</log.level>
mvn clean test
in RunCukesTest file, @CucumberOptions config
tags = "@travel"
or
tags = "not @home"
<!-- parallel execution, here by default Up to 4 threads are running simultaneously-->
<thread-count-total>4</thread-count-total>
- GIHome.feature
- GIMotor.feature
- GITravel.feature
- GIPA.feature
- HomeHealthCheckSteps
- MotorHealthCheckSteps
- TravelHealthCheckStpes
- PAHealthCheckSteps
mvn clean test -Dbrowser=firefox
mvn clean test -Dbrowser=chrome
mvn clean test -Dbrowser=msedge
mvn clean test -Dbrowser=ie
or
<browser>firefox</browser>
<browser>chrome</browser>
<browser>msedge</browser>
<browser>ie</browser>
- chrome here: https://chromedriver.storage.googleapis.com/index.html
- firefox here: https://github.com/mozilla/geckodriver/releases
- edge here: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
- IE here: https://selenium-release.storage.googleapis.com/index.html
download browser driver and put to folder :
resources/drivers/${os}/
[Note]Microsoft edge compatible versions:
- browser version: 91.0.864.41
- msedgedriver version: 90.0.818.66
check deprecated API https://www.javadoc.io/doc/io.cucumber/cucumber-java/latest/index.html https://www.javadoc.io/doc/io.cucumber/cucumber-core/6.10.2/deprecated-list.html