Hi,
I wonder how do I import my python modules inside
<scriptSteps> under jython,
for example, I have python module test.py. As long as
I pass the directory that test.py resides in to
python.path in jython registry file (under jython
installed directory) then it knows how to find it
under interactive jython program,
bash-3.00# jython
Jython 2.1 on java1.5.0_01 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> from test import *
>>> a=test()
>>> a.func()
1
>>>
however when I tried this in <scriptStep> block, it
cannot recognize test python module.
<scriptStep language="jython">
<![CDATA[
from test import *
a=test()
a=a.func()
]]></scriptStep>
",
taskName="scriptStep")com.canoo.webtest.engine.StepExecutionException:
Error invoking script: Traceback (innermost last):
File "<string>", line 5, in ?
ImportError: no module named test
questions is, how do I pass the path of the imported
python module to <scriptStep> under jython??
thanks a lot,
Chang
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest