Mailingliste - Einträge 2006

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

[qftestJUI] Jython module loading

  • Subject: [qftestJUI] Jython module loading
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 28 Feb 2006 10:53:42 +0100


I'm answering this question on the list as well as it's of general

> Hi Greg,
> An easy question for you today.

Not quite so easy, but a good one.
> In the manual - chapter 12.4 - I can read that:
> Modules that are written specifically for one
> test-suite can also be placed in the test-suite?s directory.
> Can these modules be put in sub-directories of the test-suites? 

Yes, but you must put a file named into the sub-directory
to declare the directory as a package. The file can be empty or contain
miscellaneous package initialization stuff. Then, if you have


In someone you can have script nodes with

import xxx.yyy


from xxx import yyy

> Can you also detail what happens if I modify a .py file in this
> directory. Do I need to restart QFS each time a module file is
> modified - I hope not...

Open the Jython console and execute


You can also start a script node with

import yyy

to make sure you always get the latest version. Note that reloading
will reset and module-local variables.

Best regards,

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