- Java 11 or higher
- IntelliJ IDEA
- Lombok Plugin
- Allure commandline for generation test report
- Maven for running tests from command line
- Latest Chrome browser need to be installed for running UI tests
- Docker need to be installed for running UI tests in docker container (using Zalenium for example)
- -Dplatform: local, (linux, windows, mac, selenoid - will be available after configuring remote machines). Default value is local.
- -Denv: local, qa, prod. Default value is prod
- -DtestTags: smoke, regression, employee. Default value is regression
- -Dbrowser: safari, chrome, firefox. Default value is chrome
- -DthreadCount: number of threads for parallel execution of UI tests, for safari browser should be 1. API tests are running always in 1 thread. Default value for UI tests is 3.
- -Pui, -Papi: profiles to run UI or API test suites. Default value is api
- Run script
startSeleniumGrid.shfor Mac/Linux orstartSeleniumGrid.batfor Windows to start Selenium Grid locally. For MacOs to enable running tests on Safari browser write in terminalsafaridriver --enableand config in maven command -Dbrowser=safari -DthreadCount=1 - Open URL http://localhost:4444/grid/console to check the Selenium Nodes.
- Run command
docker-compose up --force-recreateof docker-compose.yml file
After running the previous commands, you can check:
- The grid console http://localhost:4444/grid/console
- The dashboard which contains the video of test execution http://localhost:4444/dashboard/
Run tests from command line
mvn clean -Pui -Denv=prod -Dplatform=local -Dbrowser=chrome -DtestTags=regression -DthreadCount=3 test
or
mvn clean -Pui test
Run tests from command line
mvn clean -Papi -Denv=prod -DtestTags=regression test
or
mvn clean -Papi test
This is already enough to see the Allure report in one command:
allure serve /{project_root_path}/target/allure-results
If report generated successfully, report page should be opened automatically in the browser.

