Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

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,

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

Videos Downloads Documentation Buy Free Trial