Mailing list - Entries of 2006

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

Re: [qftestJUI] Ref. QftestJUI 1.08.5 / automatically ending play mode.

  • Subject: Re: [qftestJUI] Ref. QftestJUI 1.08.5 / automatically ending play mode.
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 20 Apr 2006 21:44:38 +0200

Hi Adrian,

funny you should ask this just now. I've recently been pondering
whether we should provide an official solution for just this case.

Currently you can use a "Server script" node with

from import StopException
raise StopException()

I think we will make this official so you can skip the import in the
future (and the package of the Exception might be different).

Best regards,

"Adrian Chamberlain" <Adrian.Chamberlain@?.com> writes:

> Ref. QftestJUI 1.08.5 / automatically ending play mode.
> Hi,
> What is the best way to automatically halt the 'Play' mode?
> Basically during the Setup node if certains conditions fail (e.g.  a
> properties file fails to load) then I wish to ensure that qftestJUI halts
> the playback mode (i.e. just as though the user had clicked on the Stop
> button).
> One way is to throw a user exception (the 'Throw' node).  This of course
> will result in the user exception dialog being displayed and puts an end to
> execution of the test suite.
> On windows throwing a user exception results in the user-exception dialog
> being displayed almost straight away.  But for some reason, on HP-UX, there
> is an approx. 20+ second delay before the exception dialog finally
> appears!!
> The only way to avoid this 20 second delay is to catch the exception (i.e.
> catch UserException node).  But then one is back to square one as the test
> suite will then continue to execute (i.e. the 'Sequence', then the
> 'Cleanup' nodes) ...
> Effectively I need to be able to catch the user exception, display my
> diagnostic warning popup message and then end 'Play' mode (just as though
> the user had clicked on the stop button)...
> Any advice/tips would be much appreciated.
> Thank you in anticipation of your help
> Kind Regards
> Adrian

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