Dear Katalon Community,
I have the following code on Katalon 7.2.1, developed on my local machine.
As you can see, I run a verifyElementVisible action and save the result in the verifyStatus variable and then I set a conditional ‘if’ statement to click on an element if verifyStatus is true.
When I run the code on Katalon Studio 7.2.1 on my local machine, the test passes.
However, running this same code via a Jenkins job throws the following error:
To summarise, when running the test in local, verifyElementVisible is able to return true/false and won’t throw an exception. However, when running the same code in Jenkins, verifyElementVisible will throw an exception if the result is ‘false’.
Using FailureHandling is not a solution because even though the test continues, it will still be reported as a failure.
Any assistance with this issue is kindly appreciated.