Mailingliste - Einträge 2006


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

Re: [qftestJUI] How to automate deletion of dynamically created content from a list


  • Subject: Re: [qftestJUI] How to automate deletion of dynamically created content from a list
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 05 Apr 2006 23:02:34 +0200

Hi Mark,

you already got pretty close. What you stumbled over is the following:

When recording a sub-item of the list as an "Item" node, qftest stores
the actual item name in the "Index" attribute of the "Item" node. The
"ID" of the "Item" node is created based on that index. To conform
with ID restrictions, blanks and other special characters are replaced
with an '_' character.

When changing the item reference in the MPRC to use the special '@'
syntax, you must use the index of the "Item" node as a basis, not the
mangled ID. It's easiest if you change the option
"Record->Sub-items->Sub-item type" to "Special syntax" and re-record
the mouse click, then replace the variable parts with your variables.

Best regards,
    Greg


"Mark Spielman" <Mark.Spielman@?.com> writes:

>    First I will say that I am very new to qftestJUI.
> 
> 
>    I have a JScollPane component named "Mark" that I populate by creating
>    several items via an automated add procedure.  I would then like to
>    automate the deletion of these items.  When I record the deletion
>    there are two steps involved:
> 
> 
>      * MPRC (1,1)
>        [Mark.list.lab54_Management_IP_and_Port:_192.168.128.54:80_CVRID_I
>        P_and_Port:_192.168.128.154:80=>JMSAdmin]
>      * MPRC (1,1) [buttonTipRemove_this_router2=>JMSAdmin]
> 
> 
>    I made a procedure so that I could parameterize this that took as
>    arguments the params necessary to rebuild the Component id.  However,
>    when I try to delete another of the items in the list, I get a
>    message: "There is no component with the id
>    `Mark.list.lab56_Management...'.
> 
> 
>    Having then read the manual section, "Elements of complex GUI
>    components" I tried using special Id syntax which I believe is the
>    correct way to go, but I get a message "No item was found for index".
>    So I'm not sure what the special Id syntax should be in this case.
>    The syntax I tried was:
> 
> 
>      * Mark.list@$(name)_Management_IP_and_Port:_$(mgmtIp):$(port)_CVRID_
>        IP_and_Port:_$(cvrid):$(port)
>      * Mark@list.$(name)_Management_IP_and_Port:_$(mgmtIp):$(port)_CVRID_
>        IP_and_Port:_$(cvrid):$(port)
> 
> 
>    Any help would be greatly appreciated.  I have attached my qft for
>    reference.
> 
> 
>    Thanks
> 
>    Mark
> 
>    ____________________________________________
> 
>    Mark Spielman
> 
>    Software Developer
> 
> 
>    Solace Systems
> 
>    535 Legget Drive, 3rd Floor
> 
>    Ottawa, ON K2K 3B8
> 
>    Phone: (613) 271-1010 x1021
> 
>    Fax: (613) 271-2844

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


Videos Downloads Dokumentation Kaufen Gratis Testen