Mailing list - Entries of 2005


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

Re: [qftestJUI] Get the exception's message


  • Subject: Re: [qftestJUI] Get the exception's message
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 18 Feb 2005 15:52:02 -0000

Hello Tamás,

what kind of exception are we talking about, i.e. where does it come
from (SUT, qftest, ...)?

Anyway, you can use rc.getCaughtException() either inside a Catch node
or inside a Cleanup node of a Test node with the "Implicitely catch
exceptions" attribute set. This method will return the exception that
caused the Catch node to be entered or that was implicitely caught in
the Test node. If the Cleanup node is entered regularly,
rc.getCaughtException() will return None.

Best regards,
    Greg

Tamás Bajor <bajor.tamas@?.hu> writes:

> Hi!
>
>   If an exception occur I would like to log the exception's message. (I
> wrote a log procedure with a Jython script inside) Is there a solution to
> get this message? I thought it must be. I can imagine two ways:
>   - somehow using qfs's gui (with a fetch node, etc..)
>   - somehow with Jython script, script may got an Exception object, and
> i can ask its message. Or script can ask for an exception object to QFS.
> (A non official solution also interest me. :) )
>
> Thanks
>   - Tamas -

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876



Videos Downloads Documentation Buy Free Trial