Mailingliste - Einträge 2006

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

Re: [QF-Test] Catch fails to catch exception, running multiple tests

  • Subject: Re: [QF-Test] Catch fails to catch exception, running multiple tests
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 29 Nov 2006 17:28:41 +0100

Hello Eyere,

sorry for the delayed response. Things are a bit busy right now...

The exception handling works as expected. To really understand what's
going on you should deactivate the debugger, run the TestCase and
examine the run-log.

You will see that the exception is caught in the dependency. However,
the error state of the exception is still propagated to the top, which
is why the debugger breaks on the exception. When in the debugger in
such a case, press the "Rethrow exception" toolbar button to continue
with exception handling.

Catch nodes in a dependency are intended for giving the dependency a
chance to log error information and clean up, not for suppressing the
exception. Otherwise unexpected exceptions would easily be overlooked.
Expected exceptions should be caught where they happen.

This also answers your second question. The test-run _will_ continue
with the next test, you're simply stuck in the debugger (and for that
see above).

Best regards,

"Eyere Takem" <eyere.takem@?.de> writes:

>    Hi all,
>             I am trying to understand how to use dependencies. I observed
>    the following behaviour in example 5 of dependencies.qft.
>    The testcase `Catch Exceptions' throws a UserException which I
>    expected to be caught by the node Catch UserException but this is not
>    the case.
>    What is causing this?
>    Secondly, I want to be able to carry out a multitude of tests despite
>    failures. What I mean is, even if one test fails, testing of the next
>    case should continue. I have not been able to grasp how to go about
>    it. I need some advice and hints on this.
>    Thanks.
>    Eyere Takem
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de

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