This is a basic api test automation framework structure and example using RestAssured library and POJO model.
- Programming Language : Java 17
- Build Automation Tool : Maven (v3.8.4)
- Test Framework : TestNG (v7.6.1)
- API Test Library : RestAssured (v5.2.0)
- Java Model : POJO (Plain Old Java Object)
- jackson-databind (com.fasterxml.jackson.core) : Used to serialize java object to json
- json-path (com.jayway.jsonpath) : Used to deserialize json to java object
Note : This is a example test api framework. Only the files highlighted in yellow have the code, rest java files are empty.
Run 'TestCreateBooking.xml' to run CreateBooking tests.
Test data is passed via the test xml file using parameters tag.