Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

[QF-Test] Problems with Jython


  • Subject: [QF-Test] Problems with Jython
  • From: "Rado Benc" <radobenc@?.com>
  • Date: Mon, 30 Jul 2007 17:31:05 +0200

Hi all,

I'd like to use Jython to do some scripting in qftest, but I can not
make it running. I'm trying to isolate the problem, which leads me to
the following:

1. When I open the Jython console and try to make something simple like:

from java.util import Date

I'm getting:

Jython 2.1 on java1.4.2_13 (JIT: null)
>>> from java.util import Date
Traceback (innermost last):
  File "<console>", line 1, in ?
ImportError: no module named java
>>>

2. When I try to run demo_script.qft from the tutorial, I'm getting

de.qfs.apps.qftest.shared.exceptions.ScriptException: The script
failed with the following message:
Traceback (innermost last):

  File "<string>", line 1, in ?

NameError: qftest

 at de.qfs.apps.qftest.run.l.runScript(SourceFile:1062)
 at de.qfs.apps.qftest.step.ServerScriptStep.exec(SourceFile:113)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.step.BasicSequence.exec(SourceFile:725)
 at de.qfs.apps.qftest.step.BasicSequence.exec(SourceFile:677)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.step.Test.exec(SourceFile:638)
 at de.qfs.apps.qftest.step.Test.exec(SourceFile:508)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.step.Test.exec(SourceFile:638)
 at de.qfs.apps.qftest.step.Test.exec(SourceFile:508)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.step.RootStep.exec(SourceFile:1045)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.run.AbstractRunContext.run(SourceFile:909)
 at de.qfs.apps.qftest.run.AbstractRunContext.run(SourceFile:838)
 at de.qfs.apps.qftest.run.I.run(SourceFile:6717)

3 Finally, I have looked at qftest.log, and there seems to be an error
message with somewhat similar problem (see below).

Am I doing something wrong? Or is my setup screwed? Or am I missing something?

Thank you in advance,

Rado

P.S. I'm using QF-Test version 2.0.1 (build 2117) under WinXP Pro.

This is an excerpt from qftest.log:

4 (17:09:24.910) main de.qfs.apps.qftest.start.Init.setupLogging():
-------------------- qftest 2.0.1 Started Mon Jul 30 17:09:24 CEST
2007 --------------------
3 (17:09:29.177) main de.qfs.apps.qftest.start.ServerInit.run():
org.apache.bsf.BSFException: exception from Jython: Traceback
(innermost last):
  File "<string>", line 1, in ?
  File "C:\Program
Files\qfs\qftest\qftest-2.0.1\jython\Lib\qftest.py", line 4, in ?
ImportError: no module named javax

4 (17:09:29.177) main de.qfs.apps.qftest.start.ServerInit.run():
org.apache.bsf.BSFException: exception from Jython: Traceback
(innermost last):
  File "<string>", line 1, in ?
  File "C:\Program
Files\qfs\qftest\qftest-2.0.1\jython\Lib\qftest.py", line 4, in ?
ImportError: no module named javax

 at de.qfs.apps.qftest.shared.script.JythonEngine.exec(SourceFile:182)
 at org.apache.bsf.BSFManager$6.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.bsf.BSFManager.exec(Unknown Source)
 at de.qfs.apps.qftest.start.s.h(SourceFile:189)
 at de.qfs.apps.qftest.start.Start.a(SourceFile:180)
 at de.qfs.apps.qftest.start.Start.main(SourceFile:131)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at de.qfs.apps.qftest.start.SplashStart.main(SourceFile:147)


Videos Downloads Dokumentation Kaufen Gratis Testen