Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2016 up to now | 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 2007


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

Re: [QF-Test] Waiting for a selected component


  • Subject: Re: [QF-Test] Waiting for a selected component
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 02 Oct 2007 09:18:23 +0200

Hi Chris,

you mixed up the check types. 'Check enabled state' is indeed not
supported for a table cell, because only the table as a whole can be
enabled or disabled.

What you are looking for is 'Check selected state'. If you use that
with a timeout, the check will succeed as soon as the table cell gets
selected.

Best regards,
    Greg


<Christopher.Stanbridge@?.au> writes:

> Hi Greg,
>
> I've taken your advice and I'm now using a 'Check Enabled State' node
> with a Timeout attribute set instead of the 'Wait for component'.
> I'm now getting an "Unexpected index" error when running the script:
>
> "This operation doesn't support an index for a component of class
> 'Component'."
>
> Is there something I'm missing?
>
> Cheers,
> Chris.
>
> > Hi Chris,
> >
> > this is a feature of QF-Test that is often overlooked. Perhaps we
> > should add an example to the tutorial.
> >
> > Anyway, every check node has a 'Timeout' attribute that works just
> > like in a 'Wait for component' node, except that in this case QF-Test
> > waits until the component has the desired state.
> >
> > Best regards,
> >     Greg
> >
> > <Christopher.Stanbridge@?.au> writes:
> >
> > >    Hi,
> > >
> > >    My swing SUT displays a list of components that are selectable.
> > >
> > >    When a component is selected the icon changes and the component
> > >    inherits the state of `selected'. I currently use the `Check
> selected
> > >    state' node to identify this state and it works well.
> > >
> > >    The enhancement I'm looking for is to insert a `Wait for selected
> > >    state' command so that the test will pause until it identifies
> the
> > >    change in the component.
> > >
> > >    I use the `Wait for component' regularly for other items on
> screen,
> > but
> > >    the component name does not change when selected.
> > >
> > >    Do you have any ideas?
> > >
> > >    Thanks in advance,
> > >
> > >    Chris

--
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
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833



Videos Downloads Documentation Buy Free Trial