Hi there,
We are evaluating the tool and want to know if there is any guideline to approach exception handling in Ranorex ?
Our scenario is the following:
- the user performs a click on some button.
- if the requested operation fails an error dialog is shown.
For us to be able to know an exception was thrown, we only have to find the error dialog or there is a better option ?
Thanks in advance!
Cheers,
Ricardo
Ranorex exception handling
Is the exception (or error) that you want to trap coming from your AUT or from Ranorex (i.e. the button was not found or was not clickable)?
If the former then I would believe that additional code on your part to check for the warning or error is needed.
If the latter, can you not just do a Try/Catch block and Catch RanorexException?
If the former then I would believe that additional code on your part to check for the warning or error is needed.
If the latter, can you not just do a Try/Catch block and Catch RanorexException?
-
- Posts: 29
- Joined: Tue Mar 03, 2009 11:43 pm
Thanks for your reply Ciege.
Its the former.
Lets say the clicking a button fires a server operation and that one throws an exception to the client.
In our scenario, in any scenario the exception would be caught and wrapped in a error dialog. If i see the error dialog has been displayed its enough ?
Thanks!
Cheers,
Ricardo
Its the former.
Lets say the clicking a button fires a server operation and that one throws an exception to the client.
In our scenario, in any scenario the exception would be caught and wrapped in a error dialog. If i see the error dialog has been displayed its enough ?
Thanks!
Cheers,
Ricardo
-
- Posts: 29
- Joined: Tue Mar 03, 2009 11:43 pm