You can use the Selenium adapter to run Selenium test cases
with IBM® Rational® Quality Manager.
To use Selenium test cases, you must install the Selenium adapter
and connect it to Rational Quality Manager.
Before you begin
Make sure that
Rational Quality Manager is
installed and running.
Review the prerequisites for the Selenium
adapter in the Rational Quality Manager information
center. To learn more about the prerequisites and limitations, see About the JUnit Selenium adapter integration.
Additionally,
review the steps to configure and run the Selenium adapters in the Rational Quality Manager information
center, at Running JUnit Selenium adapter execution tests.
About this task
In these steps, you set up a server to run the adapter. This
server can be on a cloud image or on another computer.
Procedure
- Download the Selenium adapter and drivers, and then configure
the Selenium adapter. To learn how to download and configure the Selenium
adapter and drivers, see Configuring JUnit Selenium adapters in the Rational Quality Manager information
center.
- Copy the Selenium script JAR files for your tests to the
server that hosts the adapter. You can place these files
in any folder. The JAR files must be available before tests run.
- In the selenium.properties file that
you edited in the first step, uncomment the line of code that contains
the com.ibm.rqm.junit.classpath property.
- Add the location of the JAR files for your tests to the com.ibm.rqm.junit.classpath= line
of code. You can specify a directory,
as in the following example:
com.ibm.rqm.junit.classpath=../scripts/ApplicationTests/bin
You
can also specify specific JAR files, as in the following example:com.ibm.rqm.junit.classpath=../scripts/ApplicationTests/SeleniumScripts.jar
On Windows,
separate each path with a semicolon (;). On Linux, separate each path with
a colon (:). For more information, see the documentation
that is included in the selenium.properties file.
- Save the selenium.properties file.
- Start the adapter. To learn how to start the Selenium adapter,
see Starting JUnit Selenium adapters in the Rational Quality Manager information
center.
- Verify that the adapter is running and connected to the
server by opening the web client for the Rational Quality Manager server;
then click the Execution tab and Adapter
Console. The new adapter is shown in
the list of adapters that are connected to the server.
What to do next
To write Selenium tests, see the
Rational Quality Manager help:
Integrating with Selenium.