Expected element property value is not equal with actual property valuse

Hi All,

Am new to katalon studio and facing issue with verifying respond for api/web serivces. Below is the error.

Expected element property value ‘1020’ is not equal with actual property value ‘2220’

Have try with the following code:

WS.verifyElementPropertyValue(response, ‘Total’, ‘2220’)
WS.verifyElementPropertyValue(response, ‘SubTotal’, ‘1020’)

Anyone encounter the error before? able to help? Thanks.

Hi wayne

Please provide more information about the response data that you need to verify. A full response data format should help a lot because you might need to add the index to verify.

1020 <> 2220. the displayed message is right

Hi sang,

The Response data look like this

image

i wanted to verifyElementPropertyValue for SubTotal which is 1020.
but it will prompt that the value as 2220 and kept referring to Total.

Hi wayne

Can you recheck the element locator, example:

WS.verifyElementPropertyValue(response, 'Main.SubTotal', '1020')

hi Sang,

I have tried that as well. Encountered this error Expected element property value ‘1020’ is not equal with actual property value ‘ ’

I have tried to println(response.getResponseBodyContent())
but it only return 2200 thats all.
is there a bug in katalon studio? i’m using version 6.2.1