Mailingliste - Einträge 2005


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

Re: [qftestJUI] Using the Break Node


  • Subject: Re: [qftestJUI] Using the Break Node
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Mon, 11 Jul 2005 14:02:01 -0000

Hi Shlomit,

change the exception in the CheckNode to CheckFailedException or
ComponentNotFoundException, whatever you're looking for (se two catch
nodes if necessary). The problem is that breaks are internally handled
via excetions and the BreakException is derived from TestException, so
if your Catch nodes catches TestException, the Break doesn't get
through.

That's an unlucky implementation detail, but necessary in order to be
able to initiate a Break from a Jython script.

Best regards,
    Greg

"Shlomit Becker" <Shlomit.Becker@?.com> writes:

>    I am trying to use a Break node in a Loop and my test is not breaking
>    out of the loop. Is there an example of how I can use a Break node?
>
>
>
>    I have the following:
>
>
>
>    Loop Node
>
>        Try node
>
>            Check node
>
>            Break node
>
>        Catch node (catches if the Check node above throws an exception)
>
>
>
>    When running I am getting to the Break node but the loop keeps
>    continuing. Any suggestions woule be appreciated.
>
>
>
>    Shlomit

--
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 Dokumentation Kaufen Gratis Testen