It's using spring, so it might leverage to understand some basic concepts about like Dependency Injection and Inversion of Control.
The project has been made thinking on CI there are a couple of options that can be provided as maven params.
There is a "ci" profile in the pom.xml file, which will set to run the test headless on single thread with
log level = info. In order to run the tests using the "ci" profile, use the following code:
mvn clean test -P ciThese default options can be changed passing maven parameters (using -D).
- test.parallelThreadCount - Number of threads to run the test suite in parallel. Default:
2. CI Profile:1. - test.browser - Which browser the tests should be use. Default:
chrome. Available Options:chromeandfirefox. - test.headless - Should run the test suite headless or not. Default:
no. CI Profile:yes. - test.log_level - The level of information on logs. Default:
info. CI Profile:debug.
Example:
mvn clean test -Dtest.parallelThreadCount=2 -Dtest.headless=trueThe screenshot can be found in folder target/surefire-reports/screenshots.