Caused by: com.kms.katalon.core.exception.StepFailedException: Actual text ‘Title_Test_QA’ and expected text ‘Title_test_QA’ of test object
why my test fails like this?
Caused by: com.kms.katalon.core.exception.StepFailedException: Actual text ‘Title_Test_QA’ and expected text ‘Title_test_QA’ of test object
why my test fails like this?
Please re-read this topic:
and act accordingly.
Title_Test_QA
Title_test_QA
You should find the difference: “T” != “t”
You should read the given message carefully before asking for help.
If you want to compare the two phrases without matching letter case (uppercase versus lowercase), then you can use Regular Expression. As an example:
def testString = "Title_Test_QA" // here we have uppercase T in Test
WebUI.verifyMatch(testString, "(?i)Title_test_QA", true) // and we match it against a lowercase t in test by ignoring the letter case.