Forum Discussion

ashutosh's avatar
ashutosh
Occasional Contributor
7 years ago
Solved

JSONPath Match Assertion - Make comparison Case Insensitive

Hi ,

 

I am trying to  Perform a JSONPath Match . 

RegionID in Request is in UpperCase (this data is pulled from another SQL data source test step which represents the values in upper case)

API Request :   GET https://URL?regionId=00000-0000-0ABC123

 

The API response is in Lowercase.

API Response : 

 

[
{
"Message" : null,
"RegionId" : "00000-0000-0abc123",
"Region" : "USA",
"ShortForm" : "USA",
"IsActive" : true,
"DateCreated" : "2010-05-17T12:04:07.513"
}
]

 

 

the Asserion Screenshot is  attached.  How do i make either the API Response as lowercase or change the SQL response as Uppercase.

 

I am able to perform this assertion using Groovy but i want to utilise the inbuilt functions of ReadyAPI tool.