0

I have designed a Rest Assured Framework where I create a separate JSON file that contains all API endpoints. So, now I want to pull the data out of this JSON file using Rest Assured. How can that be achieved?

Sample JSON file :

{
   "data": [{
         "TestCasesID": "TestCase_1",
         "ModuleName": "ABC",
         "TestCaseDescription": "Get Special Offer",
         "GetURL1": "#v1/my/specialOffers",
         "GetURL2": "#v1/my/specialOffers"
      }
   ]
}
mazaneicha
  • 8,794
  • 4
  • 33
  • 52
Anuj G
  • 1
  • 3

1 Answers1

0

you donot need rest-assured to just read values from json. it can not read/parse json files/strings. it need help from other libraries like jackson.

please refer the below answer:-

enter link description here