Mailing list - Entries of 2005


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

Re: [qftestJUI] Event


  • Subject: Re: [qftestJUI] Event
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Tue, 01 Feb 2005 14:52:45 -0000

Hello Perki,

I'm not sure I understand your question, but the best way to send an
event from an SUT script is to create a Procedure in qftestJUI that
does that, then call that procdure using rc.callProcedure()

To iterate over all nodes, you could do something like that:

tree = rc.getComponent("id of tree")
count = tree.getRowCount()

for i in range(count):
    rc.callProcedure("selectNode", row=i)


The Procedure selectNode then should have a single MPRC node with
componentID <id of tree>&$(row)

Note that due to possible complications when calling procedures from
an SUT script, the preferred way to iterate over all items of a tree,
list, table, etc. is to just get the number of items in an SUT script
and use rc.setLocal or rc.setGlobal to pass it to a qftestJUI
variable. Then you can use a Loop node to iterate over each node.

Best regards,
    Greg

"Juraj Perkacz" <perkacz@?.sk> writes:

>    Hello!
>
>
>    How could I send an event to the component (JTree) using SUT script?
>
>    I want to send MouseEvent to JTree, because JTree is always changing
>    and I
>
>    want to send an event to each node.
>
>    Thank You.
>
>    Regards,
>
>    Perki
__
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 Documentation Buy Free Trial