For Assert Statement Katalon shows TEST STEP as PASS, though assert has failed

In execution reports, Katalon shows Test Case as Failed when an Assert statement fails, but when we drill down the detailed execution logs for each statement, the failed Assert Statement is shown in GREEN color. My expectation is that, Assert Statement should be in RED color. Any thoughts?

For same Test Case if we use KeywordUtil.markFail for verification instead of TestngAssert, then statement will be shown in RED color.

Capture.JPG

2 Likes

might just need to use keywords to get it to show up. what are you asserting? Katalon has a lot of build in options that would do the same as assert and will give you a pass or fail.

Agreed.
My point is that What shown as Test Step Status is not as expected.
Yes we can use any other built in options.