trajmo
6 years agoOccasional Contributor
Compare text property of two objects
Hello,
I am having a simple issue trying to compare two text values in keyword test where one value is greater than other.
I had used compare property checkpoint, and the comparision is not corre...
- 6 years ago
Hi trajmo ,
Try converting the strings to integer with aqConvert.StrToInt fetching the value with aqObject.GetPropertyValue and then comparing them with aqObject.CompareProperty.
If you need you can use
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, ',');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, '.');to get the specific format that is displayed in your print screen pictures.
Hope this helps