This project is written in Java
Selenide
is used for UI tests and Rest-Assured
for API
Selenoid
is employed to launch browsers withinDocker
containers, providing an isolated testing environment.
Allure Report
is integrated into the project to generate comprehensive test run reports,
Gradle
is used for automated project build.
JUnit 5
is used as a unit testing library.
Jenkins
runs the tests.Upon completion of a test run, notifications are dispatched via a
Telegram
bot for seamless communication.
For success tests running you need to add 2 files apiAuth.properties
and uiAuth.properties
and put them into src/test/resources
apiAuth.properties
example
uri=https://api.trello.com
key=83048509344509c03449583
token=ATTA36da17ab56cd0frje48b9b7c43dd5b6311a7e7baf977e7a9b35c54mfk78a246B69F7CD
uiAuth.properties
example
userLogin[email protected]
userPassword=somePassword
There are 2 options to run tests locally
To run tests put this command in terminal
gradle clean {task}
Task options:
test
,regressionTests
,apiTests
,uiTests
allure serve build/allure-results
- Put files
docker-compose.yaml
andbrowsers.json
in target directory. - Download necessary docker images
docker pull {image}
- Open terminal in this directory and run the command
docker-compose up -d
Docker container should be created and running
Create Freestyle project and create following steps:
Gradle script
clean test
-Dbrowser=${BROWSER}
-DbrowserVersion=${BROWSER_VERSION}
-DbrowserSize=${BROWSER_SIZE}
-DbrowserMobileView="${BROWSER_MOBILE}"
-DremoteDriverUrl=https://user1:1234@${REMOTE_DRIVER_URL}/wd/hub/
-DvideoStorage=https://${REMOTE_DRIVER_URL}/video/
-Dthreads=${THREADS}
The GitHub workflow has been set up, and the Allure Report is published on GitHub Pages. Example: Allure Report.