Mailing list - Entries of 2006

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

Re: [qftestJUI] Jython terminal rc nameerror

  • Subject: Re: [qftestJUI] Jython terminal rc nameerror
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 29 Oct 2006 20:50:08 +0100

Hi David,

the run-context is not accessible in the Jython terminal for good
reasons: I represents the context of the current test-run whereas the
terminal "lives" outside any context.

You are welcome to run an SUT script with

global rc
rc = rc

which will give you access to rc in the Jython terminal. The results
of using the run-context there are undefined though. Most of the time
it simply works. Sometimes it doesn't and you may even deadlock the
SUT. It's OK for experimenting, but you have been warned.

Best regards,

David_Downey@?.com writes:

>    I can't seem to gain access to the rc (run context) functionality.  I
>    have tried the two options from the list archives.  I am still not
>    having any success.  Suggestions please.
>    >>> import qfclient
>    >>> reload(client)
>    Traceback (innermost last):
>      File "<console>", line 1, in ?
>    NameError: client
>    >>> global com
>    >>> com = rc.getComponent(gernericComponents_PropertiesItem3)
>    Traceback (innermost last):
>      File "<console>", line 1, in ?
>    NameError: rc
>    >>>
>    David A. Downey
>    Software Quality Assurance Analyst
>    BD Technologies

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