Automated API tests for JSONPlaceholder web site
- Tests related to retrieval, creation, editing and deleting of users;
- Tests related to retrieval, creation, editing and deleting of albums;
- Tests related to retrieval, creation, editing and deleting of photos;
- Tests related to retrieval, creation, editing and deleting of to-dos;
- Tests related to retrieval, creation, editing and deleting of posts;
- Tests related to retrieval of nested data: comments from posts; photos from albums; albums, to-dos and posts from users.
IntelliJ IDEA |
Java |
Gradle |
JUnit5 |
Rest-Assured |
Jenkins |
Github |
Allure TestOps |
Jira |
Telegram Bot |
config.properties file must be locally created and contain the following line:
baseUrl=https://jsonplaceholder.typicode.com
gradle clean test
gradle clean photos_tests
gradle clean get_request_tests
allure serve build/allure-results
List of available tasks includes:
- test
- albums_tests
- photos_tests
- posts_tests
- todos_tests
- users_tests
- get_request_tests
- post_request_tests
- put_request_tests
- patch_request_tests
- delete_request_tests
- non_get_request_tests (i.e., tests for requests using POST, PUT, PATCH or DELETE methods)
Parameters for Jenkins build
Repository contains .json files in resources/testData folder, that are used as sources of expected result and request body.
Should you require different test data, you can use Jenkins build options to overwrite data with your own. Example is on screenshot: