Post data using rest assured. Method 2

post data rest

Second way to post to rest is to create a JsonObject and put key value pairs in it. Then create a Js ... Read More

Logging response from server

loggin response rest

The way we logged our get or post request we can even log the response we get from server. Only dif ... Read More

Schema validation in rest assured

scheam valodations rest

We can get a json schema for any of our json response by going to this website. ``` https://www. ... Read More

Comparing actual response from server using JSONAssert

jsonassert rest

Previosuly we have seen how to compare two Strings using JSONAssert. Now to compare an actual json r ... Read More

Rest assured vs postman

postman rest

Rest assured is free. And very popular. It just jar files and we can add to our project to test rest ... Read More

Post data using rest assured. Method 3

post data rest

Third way is to create a java util hash map and paste name email programme etc as key value pairs to ... Read More

Put request using rest

put request rest assured

Example of put request using rest ``` package CrudOperationExamples; import static io.restass ... Read More

Logging just the body,paramters or logging based on response code

logging rest

In the same way we can log paramters or log body from a get or post request . We can even log only i ... Read More

More differences between soap and rest

soap rest differences

Soap is a protocol it follows rules for requests and responses i.e requests and responses have envel ... Read More

Hard soft assertions using hamcrest library

hard soft assertions hamcrest

Here we will see how to put multiple validations all together using hamcrest library. Hard Assert ... Read More