This project is the outcome of my self-learning about the using REST Assured for testing API.
This is repository of basic REST API testing framework.
The public API used for this example is - ReqresIn and Restful-Booker
This framework is developed using Rest-Assured library
Test Reporting is by Allure and TestNG
Build tool - Gradle
JSONPath is a query language that helps us in parsing the JSON data, which can be used for validation or assertions in a test. Hamcrest is a library of useful matchers for writing match rules
- CLI using gradle
./gradlew clean test
| will run all tests - CLI using gradle
./gradlew clean test --tests "api.example.GET_User"
| will run specific test - Intelij using TestNG runner - click on the test class - select run as
- Intelij using TestNG suite.xml - select run as
Viewing test report:
- CLI using gradle
./gradlew allureServe
- Intelij using TestNG report - test-output folder