Restful-booker API automation project
- Tools and technologies
- Test cases
- How to run
- Test results report in Allure Report
- Allure TestOps integration
- Telegram notifications
- Successful create a new auth token
POST
- Successful create a new booking
POST
- Successful update booking data
PUT
- Unsuccessful update booking without auth token
PUT
- Get booking request returns not null data
GET
- Get all booking ids returns status 200
GET
- Delete request returns status 201
DELETE
- Health check endpoint to confirm API is up
GET
To run tests locally and in Jenkins the following gradle command is used:
$ gradle clean test
After the build is done the test results are available in Allure Report
and Allure TestOps
Test results report in Allure Report
Overview page of Allure report contains the following parts:
- ALLURE REPORT displays date and time of the test, overall number of launched tests and chart showing the percentage and number of successful, fallen and broken tests
- SUITES displays groups of tests that share a common context such as a specific test environment or a particular test category
- FEATURES displays groups of tests according to Epic, Feature tags
- TREND displays trend of running tests for all runs
- CATEGORIES displays distribution of unsuccessful tests by defect types
- EXECUTORS displays information on test executors that were used to run the tests
Graphs allow to see different statistics collected from the test data: statuses breakdown or severity and duration diagrams.
On the SUITES tab a standard structural representation of the executed tests, grouped by suites and classes can be found.
Each test case have information such as severity
, description
, duration
, test data
and execution steps
.
Before tests, a simple health check request to confirm whether the API is up and running is checked.
Also creates a new auth token to use for access to the PUT
and DELETE
/booking.
Allure TestOps integration
Telegram bot sends a report to a specified telegram chat by results of each project build.