Mailingliste - Einträge 2005

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

Re: [qftestJUI] Accessing Java app objects

  • Subject: Re: [qftestJUI] Accessing Java app objects
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 22 Apr 2005 19:52:03 -0000

Hello Patricia,

the main question is: How can you get hold of the object?

Is there any way to get to it once you have a reference to the
text field or the button? Then use rc.getComponent(...) to get hold of
these and go on from there.

Otherwise you may have to create some kind of static object registry
where you can register objects from your app to access them from
jython (watch out for memory leaks though), e.g.

from import MyRegistry

obj = MyRegistry.lookup("someName")

where MyRegistry could be implemented as a trivial abstract class with
two static methods to store and retrieve objects in and from a

Best regards,

"Patricia Lanford" <lanfopa@?.edu> writes:

> Hi,
> I have a very simple gui - a textfield and an enter button.  You can
> type anything in the text field, hit the enter button, and an object is
> created (from a class I wrote myself).  My question is, can I write a
> Jython script to access this object after running a sequence of entering
> text and hitting the enter button?  I basically want to test my gui to
> see if it set up the object correctly.  Sorry if this is more of a
> Jython question, I am new to it as well.
> thanks in advance

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