using API Rest-Assured with java OOP and TestNg
You Can Runs all APIs Test Cases from file API.xlm
- use RequestSpecification class
- use Response to get url 'https://reqres.in/api/users?page=2'
- use ResponseBody class to getBody Response
- use Assertion to Verify Response Body contains correct Response Body for users is successfully
- Print Response if you want see it
- use JSONOBJECT class to put JsonBody request
- use RequestSpecification class and use Response to get url 'https://reqres.in/api/users'
- use ResponseBody to getBody Response
- use Verify extract response Body to Response Body is successfully
- Print Response if you want see it
- use JSONOBJECT class to put JsonBody request
- use RequestSpecification class and use Response to get url 'https://reqres.in/api/users/2'
- use ResponseBody class to getBody Response
- use Verify extract response Body to Update Response Body is successfully
- Print Response if you want see it