2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2011

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

Re: [QF-Test] Using Selenium jar files in Qftest

  • Subject: Re: [QF-Test] Using Selenium jar files in Qftest
  • From: "Berg, Klaus-Peter" <klaus-peter.berg@?.com>
  • Date: Wed, 28 Dec 2011 07:57:52 +0100

Title: Using Selenium jar files in Qftest
Hi Uma,
I only know of two cases where you need external JAR files (exluding the start of your SUT):
that is when using Jython or Groovy scripts and importing specific classes like
com.thoughtworks.selenium import * in a QF-Test Server script
Please see QF-Test manual (PDF) or HTML manual for an explanation on where to place such JARs:

37.2 The plugin directory

Jython and Groovy can also be used to access Java classes and methods beyond the
scope of QF-Test by simply importing such classes, e.g.

from java.util import Date
from java.text import SimpleDateFormat

print SimpleDateFormat("yyyy-MM-dd").format(Date())

Example 37.1: Accessing Java classes from Jython

The classes available for import are those on the CLASSPATH during startup of QFTest
or the SUT respectively, all classes of the standard Java API and QF-Test’s own
classes. For the SUT things also depend on the ClassLoader concept in use. WebStart
and Eclipse/RCP in particular make it difficult to import classes directly from the SUT.

Additionally, there are plugin directories into which you can simply drop a jar file to
make it available to scripts. By default, the main plugin directory is called plugin
surprise here) and is located under QF-Test’s root directory qftest

This location can be overriden with the command line argument -plugindir <directory>.
Jar files in the main plugin directory are available to both Server script and SUT script
nodes. To make a jar available solely to Server scripts or solely to SUT scripts, drop it in
the respective sub-directory called qftest or sut instead.

Best regards,


Von: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] Im Auftrag von Setty, Umadevi
Gesendet: Dienstag, 27. Dezember 2011 13:08
An: qftest-list@?.de
Betreff: [QF-Test] Using Selenium jar files in Qftest

Hi All,

I am new to qftest and need some inputs on importing jar files.
On trying to import Selenium jar files into QF-test using command   from com.thoughtworks.selenium import * in Server script , getting the error as "Import Error:No Module named thoughtworks ".

Please help me resolving this issue.