TestProject Forum
Powered by leading experts in the test automation community

How to ignore case when validating?

When validating if x = y, the test keeps failing because one value is in upper case and the other is in lower case. How do I make the validation ignore the case?

Hi @tester.ann,

If you are using the action “Compare two strings”, you can set the value of the ignorCase parameter to true

You can also use the action “Convert string to lower case” for both of the parameters.

Kind regards,
Amit

1 Like

Thanks, Amit. That works.

That’s great!
Glad I could help you :wink: