TestProject Forum

Contains text within given range

How to use contains text command to check whether a text is in given range?
Screenshot from 2021-10-22 17-08-44
For example, In the screenshot, Check if the data is in the range of 520 M to 530 M. If this condition satisfies then test passed?

Hi @Kakarot ,
you can do this by using the Evaluate Mathematical Expression action
1.use the action get numbers only on the text and retrieve data to a parameter.

  1. use the math action with this expression

if the number is indeed in the range of 520-530 the returned result will be 1 and if not it will be 0

Please let me know if that helped you.

1 Like

Thanks for your help Tal.Efraim. The solution you said worked PERFECTLY!