Selenium automates browsers, primarily for automating web
applications for testing purposes. You can use the JUnit
Selenium adapter to run
Selenium version 2.0 WebDriver JUnit4 tests in the Quality Management application.
Integration with Selenium is implemented by using a
JUnit
Selenium adapter, with
which you can run Selenium version 2.0 WebDriver JUnit4 tests in the
Quality Management application. The
JUnit
Selenium adapter serves
as a bridge between Selenium and the
Quality Management application. The required components
for running the adapter are included in an archive file (
RQMJUnitSeleniumAdapter.zip)
in the
Quality Management installation
directory. Copy this file to the computer that runs the
JUnit
Selenium adapter and extract
it to a local directory. After you copy and extract the file, you
must configure and start the adapter.
Note: The Selenium and JUnit
packages that are required to run Selenium do not come with the JUnit
Selenium adapter. You
must download all the required Selenium and JUnit4 packages and dependencies.
While
the
JUnit
Selenium adapter
runs, the adapter polls the
Quality Management server for requests
to run Selenium tests. Requests include the Java™ classes to run (for example, a JUnit test
suite or test case), any additional class path values that are required,
and, optionally, any Java system
properties to be set for the Java virtual
machine (JVM) that runs the test. After the test runs, the adapter
uploads the execution result and associated attachments to the server.
Prerequisites and known limitations
Before
you configure and use the JUnit
Selenium adapter, understand
these prerequisites and limitations:
- You must have a Java runtime
environment (JRE) 1.6 on the computer that runs the JUnit
Selenium adapter.
- You must use a process that includes the Java executable file in the PATH environment
variable to start the JUnit
Selenium adapter.
- Before you use the JUnit
Selenium adapter,
you must compile your JUnit tests to create .class files.
The JUnit
Selenium adapter
does not come with a Java SDK,
which is required for compiling Java sources.
- The JUnit tests to run must be on the same computer that runs
the JUnit
Selenium adapter.
For more information about test tool adapters, including adapter
version and user account requirements, see
"Rational test tools
integration overview" in the links that follow.