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 2011

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

Re: [QF-Test] Retrieving the current value of a QFTest Option

  • Subject: Re: [QF-Test] Retrieving the current value of a QFTest Option
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 30 Sep 2011 08:04:31 +0200

Hi Denis,

there's currently no rc.getOption method, but we'll probably add it as
it might come in handy.

In your case however, you should not need it. You must not do your own
polling in your Checker implementation because all methods of a
Checker are always called by QF-Test on the event dispatch thread. If
you try to do polling there, you'll block the thread and prevent the
SUT from updating the component that you're trying to check, thus
defeating your own purpose.

QF-Test uses the check poll interval to call your checker repeatedly,
but its polling loop is run in a background thread, so the SUT is free
to update its UI during the interval.

And no, nothing new about 'Fetch count'. It wouldn't be able to do
anything that you can do at script level anyway so I don't see where
it would help.

Best regards,

Denis Gauthier <denis.gauthier@?.au> writes:

> Hi Fellow QFTest users,
> does anyone know if it is possible to get (through script or via the qfs.qft library) the current
> value of a QFTest option?
> We can override the default options via rc.setOption(..) and unset it via rc.unsetOption(..), but
> I cannot find a way to get the value of the option.
> The reason I ask is because I need to implement my own custom check and I need to somehow manage
> the Timeout feature (like any checks in QFTest).
> Since I need to repeatedly poll for a value, I wanted to use the OPT_PLAY_POLL_CHECK option from
> QFTest rather than arbitrarily choose a value.
> Any help would be appreciated.
> Subsidiary question: is the Fetch Count functionality as described in the manual (39.2.2
> ItemResolver Interface) somehow implemented?
> That would resolve my previous issue ;-)
> Thanks!
> --
> ------------------------------------------------------------------------- DISCLAIMER: This e-mail
> transmission and any documents, files and previous e-mail messages attached to it are private and
> confidential. They may contain proprietary or copyright material or information that is subject to
> legal professional privilege. They are for the use of the intended recipient only. Any
> unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or
> reliance on, this message is strictly prohibited. No part may be reproduced, adapted or
> transmitted without the written permission of the owner. If you have received this transmission in
> error, or are not an authorised recipient, please immediately notify the sender by return email,
> delete this message and all copies from your e-mail system, and destroy any printed copies.
> Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege
> or protection. Thales Australia does not warrant or represent that this e-mail or any documents,
> files and previous e-mail messages attached are error or virus free.
> -------------------------------------------------------------------------

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