UI and API testing framework
██████╗ █████╗ ███╗ ███╗██████╗ ██╗ ██╗████████╗ █████╗ ███╗ ██╗
██╔══██╗██╔══██╗████╗ ████║██╔══██╗██║ ██║╚══██╔══╝██╔══██╗████╗ ██║
██████╔╝███████║██╔████╔██║██████╔╝██║ ██║ ██║ ███████║██╔██╗ ██║
██╔══██╗██╔══██║██║╚██╔╝██║██╔══██╗██║ ██║ ██║ ██╔══██║██║╚██╗██║
██║ ██║██║ ██║██║ ╚═╝ ██║██████╔╝╚██████╔╝ ██║ ██║ ██║██║ ╚████║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝
The repository consists of two subpackages:
Navigate to rambutan-api-test or rambutan-ui-test directory and execute the following command:
gradlew clean build -x test
For whole regression job use the following command:
gradlew test -i
If you want to execute only smoke test set, execute this command:
gradlew smokeTest -i
After test executon use the following command in order to generate [Allure] report:
gradlew allureReport
Once the generation finished, navigate to the build/reports/allure-report/ directory and open index.html in a browser.
Api tests have their own coverage reporting mechanism. To check the actual status of endpoint traceability, navigate to the api-test directory and open the generated coverageReport.html file in a browser.
The following tools are used accross the project.
Name | Version |
---|---|
selenium-java | 3.141.59 |
webdrivermanager | 3.8.1 |
rest-assured | 4.1.2 |
testng | 7.0.0 |
assertj-core | 3.14.0 Apache 2.0 |
jsonassert | 1.5.0 |
awaitility | 3.0.0 |
lombok | 1.18.6 |
allure-testng | 2.13.1 |
allure-environment-writer | 1.0.0 |
freemarker | 2.3.29 |
guava | 28.2-jre |
[Allure]: http://allure.qatools.ru