Here, we’ll discuss about how can we automate our testing of RESTful webservices using REST ASSURED and Integrate it with one of the trending framework, “TestNG“

REST Assured is a Java DSL for simplifying testing of REST based services built on top of HTTP Builder. It supports POST, GET, PUT, DELETE, OPTIONS, PATCH and HEAD requests and can be used to validate and verify the response of these requests.

Finally, Execute the class as TestNG Test by clicking anywhere Run As>> TestNG Test
Therefore, You will see that all the test cases will pass and in the terminal where json server is running. So, there will be a log of all the calls hitting the server.

#api testing #java #testing #restapi

Integrate TestNG and Json-Server with  Rest-Assured
1.75 GEEK