Search Timeout Exception handling

Ask general questions here.
elis
Posts: 15
Joined: Sun Nov 10, 2013 10:27 am

Search Timeout Exception handling

Post by elis » Thu Nov 28, 2013 2:21 pm

Hi,

How can I catch all test case exceptions for "Search Timeout" and handle them in one place before "Report" class catches it?

I just want the report to write "info" event instead of "failure" when "Search timeout" occurs for any item.

Thank you!
--Eli

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

Re: Search Timeout Exception handling

Post by Support Team » Fri Nov 29, 2013 3:14 pm

Hello Eli,

Unfortunately, it's not possible to change this via a direct method.
You could of course handle these exceptions with your own methods in User Code.

An exception is logged as 'Error' in the report since this behavior is not expected.
You could change the property 'Continue On Fail' of an action in your recording to 'True'.
In this way, the action is optional and would log a 'Warn' message in your report.

Could you please describe why do you want this behavior?
Thanks in advance.

Regards,
Markus (T)
.
Image

elis
Posts: 15
Joined: Sun Nov 10, 2013 10:27 am

Re: Search Timeout Exception handling

Post by elis » Fri Nov 29, 2013 6:07 pm

Hi Markus,

I just want to change this behavior for all test cases since I don't want my test case to show error message if search timeout occurs.

I know that it is possible to change it per action/test module, but I have many actions and will have more :)

Is there a way to catch all action exceptions in one place outside the test module? for example, to change the report class behavior for such an event.

Thanks,
Eli

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

Re: Search Timeout Exception handling

Post by Support Team » Mon Dec 02, 2013 4:15 pm

Hello Eli,

Unfortunately, it's not possible to set this behavior outside of a test module.
Please describe why do you want to change this exception behavior.
Would it be possible for you to increase 'Search Timeout' of your repository items?

Thanks in advance.

Regards,
Markus (T)
.
Image