Mailingliste - Einträge 2006

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

Re: [QF-Test] Testin Label visibility

  • Subject: Re: [QF-Test] Testin Label visibility
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 21 Nov 2006 17:00:06 +0100

Hello Olaitan,

the best way to check for a component's existence is to use a "Wait
for component node", with a 0 timeout if necessary.

If you want this to be equivalent to a check, i.e. don't throw an
exception on failure but just log an error, use the following

+ Try
  + Wait for component (label)
  + Catch ComponentNotFoundException
    + Server Script: rc.check(0, "Label invisible")

Best regards,

Olaitan Malomo <olaitan.malomo@?.com> writes:

> I am currently trying to test if a label has been set visible. The
> only way i can think of doing it using qft is by recording a test
> using the image region.
> This posses the problem that once the label is invisible, the qft
> cannot use its image region in the test instead it takes a snapshot of
> the parent of the label.
> Is there a way in which i can explicitly specify a region i want checked?
> regards
> -- 
> Olaitan Malomo
> Professional Services Team
> Integra SP Ltd
> Email: Olaitan.Malomo@?.com
> Phone: +44(0)207 956 2441
> Fax:   +44(0)207 956 2259

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