Comparing responses using hamcrest library

comparsions hamcrest

Next lets discuss hamcrest librabry.We have seen above that we can compare an actual result we got f ... Read More

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

Simple request and response example

request response rest

Simple request and respone example using rest assured. ``` package basics; import org.testng. ... 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 request using rest assured

post request rest assured

Example of a post request using rest assured ``` package CrudOperationExamples; import ... Read More

Data extraction from response.Method 2

data extraction rest

Second way to extra data from response is using Json extractor object. Here we make an object of ... Read More

Post data using rest assured. Method 4. If one form field is a map of key value pairs

post data rest

Second method –Here courses is not a list but instead a map of key value pairs.So we create a Studen ... Read More

Another request and response example in Rest assure

requesr response rest

Better example for request and response in which we can send request in just one line. We can do ev ... Read More

Post data using rest assured. Method 4.If one field is a list of maps and each map furhter contains a list

post data rest

If courses contains list of maps and each map object further contains a list of topic.So we have li ... Read More

Logging just the headers in rest assured

logging headers rest

We have seen earlier than we can log the entire req that we are sending to the server. But question ... Read More