Mailingliste - Einträge 2005

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

Re: [qftestJUI] rc variable in SUT Jython Terminal

  • Subject: Re: [qftestJUI] rc variable in SUT Jython Terminal
  • From: Karlheinz Kellerer <Karlheinz.Kellerer@?.de>
  • Date: Tue, 30 Aug 2005 09:47:01 -0000

Hi Bastian,

Bastian Bowe <Bastian.Bowe@?.de> writes:

> Hi,
> I can't figure out how to access the variable "rc" in Jython SUT Terminal
> of my SUT client. E.g. typing
> >>> rc
> Traceback (innermost last):
>   File "<console>", line 1, in ?
> NameError: rc
> Do I have to import something. It would be useful to me to have rc
> available to test some snippets without having to create a SUT Node in
> qftest.

rc basically represents the current execution stack of
the test, which is not directly accessible in the jython terminal.

Nevertheless with a little trick it is. Just do the following in your SUT

global com
com = rc.getComponent("...")

Now com is accessible via the jython terminal. For just retrieving information
from the component that works fine, but be careful when trying to actively
control it. You are not working on the AWT event dispatch thread and Swing
isn't thread-save ;-)

Best regards,

Karlheinz Kellerer                     Karlheinz.Kellerer@?.de
Quality First Software GmbH