Testing and validating JsonPlaceholder REST services with RestAssured in Java.
This is test automation framework skeleton.
JsonPlaceholder is Free fake API for testing and prototyping.
RestAssured used for the testing and validation of RESTAPIs.
TestNG framework used for running and designing tests.
- Needs JDK 8+ to be installed. (For more information about installation : https://docs.azul.com/zulu/zuludocs/ZuluUserGuide/Title.htm)
- Needs Maven to be installed. (For more information about installation : https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)
Git clone the repository to your local environment for further information refer to the link: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository
git clone https://github.com/ozlemgulp/api_test.git
To build the artifact go to the project root folder and open cmd and run the command:
mvn clean install
Test can be run with 2 option
1. Run tests from cmd:
mvn test
2. Run test by using testng.xml
Import the project to IDE
find the testng.xml right click to file> Run As >TestNG Suite
Maven surfire report created after each run under test-output folder
List of features ready and TODOs for future development
- Awesome feature 1: Search for the user with username “keyword”
- Awesome feature 2: Use the details fetched to make a search for the posts written by the user.
- Awesome feature 3: For each post, fetch the comments and validate if the emails in the comment section are in the proper format.
To-do list:
Project is: finished
Created by @ogpamuk - feel free to contact me!