Search code examples
testingautomated-testsreportingkatalon-studio

Changing default message displayed after execution of Katalon Studio test cases


Is it possible to change the default message that is displayed after the test case execution?

I would like to 'translate' technical terms to the user-friendly ones. So that people running the tests could interpret the results without knowing the details of the script. The problem is when a customer service employee runs a test and gets a message saying something like: "Test failed because [error stack trace]" they don't know how to interpret it.


Solution

  • You can use solution below to show personalized messages in case of failure.

    if(!WebUI.verifyElementClickable(findTestObject('abc/button_next'), FailureHandling.OPTIONAL)){
       KeywordUtil.markFailedAndStop("Failed to found button on page!")
    }