Automated REST API tests for Shop
https://testbase.atlassian.net/wiki/spaces/SHOP/overview?homepageId=1411056054
- 🛠️ Stack of technologies
- 📄 Description
- 📋 List of REST API tests
- 🔌 Running tests from the terminal
- ⚙️ Running tests in Jenkins
- 📊 Test results report in Allure Report
- 🚀 Integration with Allure TestOps
- 🔗 Integration with Jira
- 📣 Integration with Telegram
The test project consists of REST API tests and includes the following interesting features:
- ✔️ Parameterized tests: Allows testing of various scenarios by providing different input data
- ✔️ Object serialization/deserialization: Handles API requests and responses using
Jackson
for seamless data transformation - ✔️ Request specification: Uses request specifications to simplify and centralize API test configuration
- ✔️ Fake data generation: Utilizes the
Faker
library for generating random test data - ✔️ Custom Allure listener: Provides beautiful logging of API requests and responses
- ✔️ Allure TestOps integration: Integrates with Allure TestOps for comprehensive test reporting and analytics
- ✔️ Jira integration: Seamlessly tracks issues and integrates with Jira for efficient collaboration
- ✔️ Parallel execution: Executes tests in parallel for faster feedback and reduced execution time
- Create item in Shop with all fields
- Create item in Shop with required fields
- Unsuccessful item creation: missing required parameter
- Create item with photo with width more than 500px
- Delete item in Shop
- Delete item with bad id
To run tests from the terminal using Gradle, you can use the following command:
gradle clean test
Running tests in Jenkins
Main page of the build:
Job configuration:
Test results report in Allure Report
From Jenkins
it is possible to switch to reports generated by
Allure
.
Integration with Allure TestOps
Integration with Jira
After passing all the tests, an automatic report is sent to the Telegram
messenger.