Configuring JUnit Selenium adapters

To implement a JUnit Selenium adapter, you must first configure it.

Procedure

  1. On the computer that runs the JUnit Selenium adapter, download the latest version of the Selenium client drivers for Java™ from http://seleniumhq.org.
    Tip: You can also download the JUnit Selenium adapter from the All Downloads tab of the Rational® Quality Manager release page on Jazz™.net. Download the version of the JUnit Selenium adapter that matches the version of the Jazz Team Server that you connect to.
  2. Extract the archive file to a local directory that is accessible while the JUnit Selenium adapter is running.
  3. On the computer that runs Rational Quality Manager, open the QM_install_dir/JazzTeamServer/server/conf/qm/adapters directory and copy the RQMJUnitSeleniumAdapter.zip file. Extract the file into a new directory.
  4. Update the com.ibm.rqm.selenium.seleniumClasspath property to specify the class path entries for Selenium, JUnit, and all dependent packages:
    1. Open the selenium.properties file, which is in the directory where you extracted the RQMJUnitSeleniumAdapter.zip file.
    2. Add the .jar file location from the Selenium client driver that you downloaded to the value for the com.ibm.rqm.selenium.seleniumClasspath property. Provide the path to the folder where the .jar files are stored, not the path to each individual .jar file. The class path entries must specify the location of at least the classes that are required to run a Selenium version 2.0 WebDriver JUnit4 test suite or test case. You can also specify more class path entries to refer to common libraries.
    For example, if you are using the Selenium version 2.28.0 download, the com.ibm.rqm.selenium.seleniumClasspath property looks like this example:
    com.ibm.rqm.selenium.seleniumClasspath=c:/selenium-2.28.0;c:/selenium-2.28.0/libs
    Note: In Rational Quality Manager, the JUnit Selenium test script editor includes a field in which you can list class path entries that must run a specific Selenium test. Before the JVM process that executes the test runner starts, the class path entries that you specify in the test script are combined with the entries in the com.ibm.rqm.selenium.seleniumClasspath property.


Have a problem or a question? Post it in the Jazz.net forum.