Mailing list - Entries of 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: "Paul Bindels" <paul.bindels@?.com>
  • Date: Mon, 5 Dec 2005 18:04:14 -0800

Thanks for the feedback.  I am however still having problems here.

I was already running in "hierarchical name resolution" mode.   I see in the
"Structure" of the component that there is an index count of 2.  This makes
sense because there is 2 check boxes associated with it.  One check box is
on the left and one check box is on the right of the parent class component.
When I record the checking of a checkbox on the left, it puts the index as
zero (as expected).  When I record the checking of a checkbox on the right,
it puts the index as one (again as expected).  However when I do a replay,
the test doesn't check the correct check box.  When I manipulate the index
of the component manually, it doesn't make any difference during replay.  It
still checks the same box as it did originally.  Am I missing something on
how the Structure index is used?  Why doesn't qftest pick the correct index
during the replay?  Why can't I change the index value of the component

Another similar problem, is that when I record the checking of each box,
qftest only creates one component because the component has the same name.
This makes it impossible to check both the box on the left and the right
(even if I could get the indexing part to work).

I have attached a small qft file to show you what we are trying to do and
picture of the checkboxes.

I will try the name resolver next but that looks pretty complicated so I
would like to try the other options first.

-----Original Message-----
From: Gregor Schmid [mailto:Gregor.Schmid@?.de]
Sent: Friday, November 18, 2005 8:37 AM
To: qftestJUI-list@?.de
Cc: Paul Bindels
Subject: Re: [qftestJUI] Problem finding widget indexes


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,
    Greg

"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
> http://www.qfs.de/mailman/listinfo/qftestjui-list

--
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

Attachment: qftestscreenshot.gif
Description: GIF image

Attachment: get_component.qft
Description: application/qftestjui


Videos Downloads Documentation Buy Free Trial