Forum Discussion

AAB's avatar
AAB
Regular Contributor
5 years ago

ReadyAPI - How to compare quoted array with unquoted array

Hello,   For my test I have a REST Request that gives back a json response.     [{ "nationalId": "01050110250", "driverLicences": [{ "model": "BC", ...
  • HimanshuTayal's avatar
    5 years ago

    AAB : As i can see you are just logging the value not storing the value in the variable. Just assign the value in the variable as below

     

    def rrn = holder.getNodeValue( "//data[1]/ResponseBody-data[1]/DataSubject-01[1]" )
    rrn = rrn.toString().replace("\"","")

     

    Hope this will work.