Mailingliste - Einträge 2005

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

Re: [qftestJUI] Problem finding widget indexes

  • Subject: Re: [qftestJUI] Problem finding widget indexes
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 18 Nov 2005 16:42:01 -0000

Hi Paul,

please see the documentation for the option

"Record->Components->Name override mode"

manual section 14.2.3 (and the similar option under replay).

If you setting is name overrides everything, qftest will not be able
(or rather not try) to tell components with identical names apart
(though you should get a warning about non-unique names).

Your options are to switch to "hierarchical name resolution" mode or
even "plain attribute", but if possible you should try to avoid that.
It's better to try to use per-window unique names and only if that
can't be achieved, use hierarchical resoution or maybe write a
name-resolver to make a few remaining name collisions unique (which
would be a feasible solution for this special case).

Best regards,

"Paul Bindels" <paul.bindels@?.com> writes:

> Hi,
> We are having a problem when playing back a sequence that uses widgets of
> the same name.
> We have a widget which contains two Jtextfields (one editable, one non
> editable) which both have the same name. We cannot consistently select one
> or the other to edit the text or to do verification.  When we play back
> sometimes the non-editable text window gets selected. Our developers say the
> parent (the widget) has an index for each of the text boxes so QfTest should
> be able to uniquely identify the one we want if we have access to it. We
> don't see this capability in QfTest. One solution is to force a unique name
> for each internal component but this requires redesign. Is there a work
> around? Is there a planned enhancement to provide this capability?
> Design
> Widget
>   - Jtextfield AttrAddress (non-eidtable)
>   - Jtextfield AttrAddress (editable)
> QfTest only shows one
> Widget
>   - Jtextfield AttrAddress## (no way to know which one)
> Thank you,
> Paul
> _______________________________________________
> qftestJUI-list mailing list
> qftestJUI-list@?.de

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