How do I add User Code with exception handling and Alerts

Ranorex Spy, Recorder, and Studio.
Paprikano
Posts: 3
Joined: Mon Feb 11, 2013 9:58 am

How do I add User Code with exception handling and Alerts

Post by Paprikano » Tue Mar 05, 2013 8:38 am

Question: is it possible in Ranorex while doing a user code, and on your method in C# code, throw exceptions, or create logfiles in case an action fails?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How do I add User Code with exception handling and Alerts

Post by Support Team » Wed Mar 06, 2013 1:02 pm

Hi,

I am not totally sure I got your question, but in generally if an action
fails you will always get a log message which tells you what happened.
You can of course also log your own text in UserCode in case of
a failed action, but in order to get a better overview of Ranorex I would
really suggest reading the topics in our UserGuide, in special the topics
about the UserCode:
User Guide
Lesson 7: Code Modules
Code Examples

Regards,
Markus
.
Image