- Java 11
- Selenium
- Geckodriver
- Cucumber
To run test Geckodriver 0.32 must be installed on test machine. Then in directory PROJECT_ROOT/lib/src/test/resources in file driver.properties set required properties:
geckodriver_exec=path to executable
firefox_profile_path=must set firefox profile
app_profile='dev' == firefox in maximized screen, other string == headless.
In terminal cd
to PROJECT_ROOT and ./gradlew test
.
Html reports for test are in PROJECT_ROOT/cucumber_reports
To run tests individually: ./gradlew apiTests
and ./gradlew uiTests
respectively.
Whole API Testing Section. Because url that provided in specifications respond with 404
code response. After writing letters to HR I have got response that it's actually
that what is requested. So I simply write boiler plate code for this section.
I have spend a lot of time to suppress logging to teminal from sprinframework.
But no matter what I did it still showing up. One thing that makes me feel a bit
easier that as in 'Inception' movie the more levels of indirection we have the more
glitchy system behave.
Code written in vim editor I don't have particularly good settings for Java. Some unused imports and strange formatting may be present.