Katalon seems to be an easy to use testtool to create aut testscripts very easy. But now and than there is something strange in appearantly simple constructions in the testcases.
I want to make a conditional step in my case ( if this is true, then do that). It seems that it only works if the condition is indeed true. If the condition is false, then i get the message
statement:
if (!WebUI.verifyElementAttributeValue(findTestObject(‘InProces/Inproces 2.12-SNAPSHOT/md-switch_afgehandeld’), ‘aria-checked’,
'false', 0)) {
WebUI.click(findTestObject('InProces/Inproces 2.12-SNAPSHOT/md-switch\_afgehandeld'), FailureHandling.CONTINUE\_ON_FAILURE)
}
error:
Test Cases/koppel CB in Squit2020 FAILED because (of) Unable to verify if object ‘Object Repository/InProces/Inproces 2.12-SNAPSHOT/md-switch_afgehandeld’ has attribute ‘aria-checked’ with value ‘false’ (Root cause: Object ‘Object Repository/InProces/Inproces 2.12-SNAPSHOT/md-switch_afgehandeld’ has attribute ‘aria-checked’ with actual value ‘true’ instead of expected value ‘false’)
is this a bug or am I causing this failure? Is there anybody with an idea how to solve this?