Mailing list - Entries of 2005


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

[qftestJUI] How to use external jar files for implementing own jython scripts?


  • Subject: [qftestJUI] How to use external jar files for implementing own jython scripts?
  • From: "Moser, Martin (Bbn)" <mmoser@?.com>
  • Date: Tue, 1 Feb 2005 16:52:27 +0100

Hi all,

the application, I'm testing, uses externals jar-Files.
In my jython scripts I have to use some methods and constants from those external classes to test the objects themselves.

I tried to create a SUT script, using those .jar Files. [from package use class]

Therefore I started qftestJUI using the -plugindir option.
	qftestJUI -plugindir <PATH-TO-JARDIR>
But at this case, only the Server script did know the .jar classes. The SUT script didn't.

I had the same effect, using -J-classpath <jarfiles> or setting the environment variable CLASSPATH.

But how can I make those jar files known to the SUT scripts?
Would it be a supported way to 'transfer' the tested component from a SUT script to a Server script, via a variable?
I am also thinking about writing a separate java test class, which has the tested component, as constructor argument or similar, but there I would have the same problem, how to make the test class known to the SUT scripts?

I'm using qftestJUI 1.8.

I'm starting the application, via 'Execute Shell Commands' and an instrumented JRE 1.4.
	The start script of the application starts the application like:
		%MYJAVA% -showversion %JVMARGS% %* -jar "%~dp0..\java\starter-jar.jar"  "%~dp0..\java\ui-jar.jar"

Thanks in advance!

Regards,
Martin



Videos Downloads Documentation Buy Free Trial