2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Log an exception


  • Subject: Re: [QF-Test] Log an exception
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Thu, 10 May 2012 13:55:18 +0200

Hi Ivan,

the best way is to re-throw the exception, either at script level or
via the Rethrow node. Wrap that in a Try/Catch and set 'Maximum error
level' on the Catch node to 'Error' and the exception will not
interrupt the test but be reported as an error with stack trace,
screenshot and everything else.

Best regards,
    Greg

Ivan Boelle <ivan.boelle@?.com> writes:

> Hello,
>
> Is there a way to log a UserException ?
> Something like printStackTrace() but for a builtin QFTest exception.
>
> Explanation:
> The SUT can 'sometime' fail to start for spurious reasons so I have a system that tries several
> times before giving up and logging an error.
> However I would be interested to log the exception raised (ClientNotConnectedException for
> example).
>
> I would like to have the same result in the result that when an exception is thrown but not
> caught.
>
> Is there a way to do that ?
>
> Regards,
>
> ---
> Ivan Boelle
> INT, Interactive Network Technologies

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833