Reqres.in API test automation project demo
- Tools
- Test cases
- Running Automated Tests
- Jenkins Build
- Example of Allure Report
- Integration with Allure TestOps
- Integration with Jira
- Telegram notifications
The project utilizes Java
along with REST Assured
for API testing.
Integration with tools like Jira
for issue tracking, Allure
for test reporting, and Jenkins
for continuous integration.
Gradle
is used for project automation along with JUnit5
for test execution. Integration with Allure TestOps
, provides connection for test management and analysis.
After the completion of a build, the Telegram
bot automatically processes and dispatches a message containing the test run report to a pre-configured chat.
Allure report is additionally customized by the provided AllureListener. This customization allows for the inclusion of custom templates for requests and responses, enhancing the clarity and presentation of the test report.
- Check user not found login response
- Check successful login response
- Verify successful registration
- Verify bad email registration
- Verify empty email registration
- Verify empty password registration
- Verify not found response for specific user
- Verify response data for specific user
To run all the tests:
gradle clean test
To run only login tests:
gradle clean login_test
To run only registration tests:
gradle clean registration_test
To run only signle user data tests:
gradle clean user_test
Jenkins Build
To start the build, go to the "Build with parameters" section, select the necessary parameters, and click "Build".
Registration on the Jenkins resource is required for access to Jenkins.
- TASK (set of tests to run)
- BASE (tested site base url)
After the build is completed, icons for "Allure Report" and "Allure TestOps" will appear next to the build number in the "Build History" section. Clicking on these icons opens pages with the generated HTML report and test documentation, respectively.
Example of Allure Report
Integration with Allure TestOps
On the Dashboard in Allure TestOps, you can see the statistics of the number of tests: how many of them are added and executed manually, how many are automated. New tests and test run results are sent through the integration with each build.
Integration with Jira
Integration with Allure TestOps and Jira is implemented. In the Jira task, you can see which test cases were written as part of the task and their execution results.
After the build is complete, a Telegram bot automatically processes and sends a message with the test run report to a specifically configured chat.