

Now, we are able to use all ability of RestAssured. Before 2.0 version Rest Assured did not support “given / when / then” that is like Behavior Driven Testing (BDD) approach.Īll below explanations are according to Maven project įirstly we need to add Maven dependencies to use Rest Assured in our project as Rest Assured has a template format like “given / when / then” but for an earlier version of this framework not followed this template, the reason for not using these words in the first place was mainly technical.
#Rest assured meaning Patch
The framework supports many rest methods like POST, GET, PUT, DELETE, OPTIONS, PATCH and HEAD to validate and verify response. RestAssured is designed to test Rest API’s in an easy and meaningful way by Jayway. RestAssured is a test automation framework that brings all the simplicity of all other scripting languages to Java side. Rest API’s uses HTTP response codes to communicate with consumers, that is, 200 stands for “OK”, 404 stands for “Not found” and 409 stands for “Conflict” and so on. Let’s look at the operations to be done and their meanings
#Rest assured meaning free
Restful API’s are light-weighted, that means, you do not have any XSD’s or WSDL’s like in SOAP services, you completely free to change request or response type whenever you need. Restful API’s mostly work with JSON text format, but it is not just limited to work with JSON, the client can use responses as XML or raw text.


Restful API’s are platform independent, that it does not matter what platform the server and the client are developed with. You do not have to include a dll, a class or an object into your project on the client side to benefit from the service. Additionally, there is no information about the client is kept on the server side. Restful API’s are stateless, that means there is no state information is held by application, it is performed by the client. A RESTful API is an application program interface ( API) that uses HTTP requests to GET, PUT, POST and DELETE data. Rest stands for “ REpresentational State Transfer”, that is an architectural style for developing web services. Author: Seda ALTIOKOĞLU ATASOY, SW Test Engineer
