truclient event handler for error events/timeouts

Idea ID 2799448

truclient event handler for error events/timeouts

It would be nice to have a generic event handler for error events on any step, so the script can gracefully logout from an application. Currently event handlers seem to focus on objects, but not on error events like a timeout. I would use this feature for all steps after a login.

8 Comments
Micro Focus Expert
Micro Focus Expert

Hi,

Thank you for the feedbacks. Could you please specific  the differences between the suggestted error event handlers and the try catch steps to help us improve the current product? 

Best regards, 

Edwin

Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Hi,

A Catch error step can meet your request.  A Catch error step traps an error in the immediately preceding step.  The preceding step can be a single step or a group step. 

Check here for more details.

If you still have questions, please let us know.

Frequent Contributor.
Frequent Contributor.

Hi,

 

As there is no global try/catch, the idea is still good espacially if we have several actions in our Truclient script.

Micro Focus Expert
Micro Focus Expert

Hi @sleperscacf ,

So the idea is aim to add a global error handler mechanism in TruClient. Then the user don't have to add try/catch for every actions in a TruClient script. Do you think this is both you and @gino8098doj 's requirement?

Thank you for your feedback.

Best regards,

Edwin

Valued Contributor.. Valued Contributor..
Valued Contributor..

Hey Edwin,

I think adding an example in your documentation that you can use try/catch in a "group step" in any/all action(s) may be one way of addressing this.  This combo approach is just not very intuitive.

Gino

Frequent Contributor.
Frequent Contributor.

Hi @Edwin ,

 

Yes the idea is to have a global error handler mechanism (like event handler). And as I wrote, espacially if we have several "Actions" in our Truclient script.

Regards

Micro Focus Expert
Micro Focus Expert

Hi Gino ( @gino8098doj ) and @sleperscacf ,

Got it. We will try to address this in our future release. Thank you for your great feedback!

Best regards,

Edwin

Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.