Project default parameters:
<browser>chrome</browser>
<browser.version>79</browser.version>
<baseUrl>https://twitter.com/</baseUrl>
<runType>local</runType>
You can either change them in pom.xml
or explicitly set parameters in terminal
Note: There is no need in supporting browser drivers anymore, Selenide
takes care about dowloading browser drivers binaries(chrome\geckodriver and etc).
By default tests are running in chrome
Run command in terminal:
$ mvn clean test
If you want to run tests in Firefox (or other browsers) just add parameter -Dbrowser
$ mvn clean test -Dbrowser=firefox
Prerequisites: Install and run selenoid hub and ui - Seelenoid Quick Start Guide
Run command to check if Selenoid is up and running:
$ docker ps -a
You should see two selenoid containers in the list:
Run command in terminal to invoke tests
$ mvn clean test -DrunType=docker
If you want to specify browser or browser version adjust command with parameters -Dbrowser
, -Dbrowser.version
$ mvn clean test -DrunType=docker -Dbrowser=firefox -Dbrowser.version=72
Selenoid UI is available on http://localhost:8080/
VNC allows to see and interact with browser while log will reflect all driver actions:
Prerequisites: Install Allure command line - Allure Installation Guide
After build is finished Allure results will appear in target/allure-results folder. To generate html report and automatically open it in a web browser, run the following command:
$ allure serve target/allure-results