Posts

Showing posts with the label API Automation

Comparing JSON responses using JsonAssert Library - Strict Mode

Image
  In one of the earlier post, we studied about Comparing JSON responses using JsonAssert Library - Lenient Mode , before following this tutorial, I would recommend reading the previous blogs.  I would assume that everyone following this tutorial has knowledge of Java and TestNG. If you need help then please follow tutorials on Java and TestNG .   In this post, we will learn about using the Strict Mode provided by the  JSONAssert  Library . In case of Lenient mode if the order of elements in an array are not same then still the test will pass. In case of Strict mode  if the order of elements in an array are not same then the test will fail. We will be using  findplacefromtext  Google Map API. Follow the create API Key  Article  for generating your key. Now let's look at an example where we will search for a particular Railway Station in Mumbai City and then assert the expected response present in  expectedResponse.txt  file to ...

Popular posts from this blog

Using RequestSpecBuilder in Rest Assured ( Code Reuse )