[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qftestJUI] How to use external jar files for implementing own jython scripts?
Hello Martin, I'm afraid the plugindir option isn't propagated to the SUT. I guess that has to be considered a bug. As a workaround, drop your jars in the standard plugin directory .../qftest/plugin where they will be picked up by the SUT as well as qftestJUI. By the way, jars that are on the CLASSPATH of the SUT should also be accessible from SUT scripts. Best regards, Greg "Moser, Martin (Bbn)" <mmoser@?.com> writes: > 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 -- Gregor Schmid Gregor.Schmid@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 919870 DE-82538 Geretsried Fax: +49 8171 919876