Forum Discussion

trajmo's avatar
trajmo
Occasional Contributor
6 years ago
Solved

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 correct.(you can see it from the printscreen).

After that i had tried to do it in script, same with compare property checkpoint and the result was the same as in the keyword test.

Also i had tried to do with if then statement: if (raspSr > vkIznos) then Log.message('ok') else log.error('notok') where i had defined my two variables as a String( var raspSr: string; var vkIznos: string), but it doesnt help. I constantlly get the incorrect results  for everything mention above.

I am sending you the printscreen results, any help will be welcomed.