HTTP request if one of the test steps fails


#1

Hello,

we are going to integrate katalon to our system for creating keys on different websites. I already made test suites for each website. It basically clicks some buttons and fill some inputs based on external data and foreign website will create key which we need to send to our system.

Here is my question:

How do I make Katalon to send http request to our system if any of the test steps fails (if any of the steps fails the key will not be created - that must be reported)?

I thought of putting all of the test steps into conditional, but that would be kind of ugly code.

Thank you in advance


#2

use a try {} catch {}. basicaly, any failure throws an exception :wink:


#3

Thank you :ok_hand: