You can create a reference to a Selenium script just as
you would create any script in the Quality Management application.
Procedure
- Click .
- Select the script type as JUnit
Selenium.
- In the JUnit
Selenium Script
Details section, specify values for these fields:
- Test Class: The name of the JUnit
Selenium class to execute.
- Classpath: Class path entries that are
required to run the test class.
- Java System Properties: Java™ system properties to pass to the JVM.
- After you create the script, assign it to a test case and,
optionally, assign the test case to a test suite.
- Run the test case or test suite. Instead you can create
or generate a test case execution record or test suite execution record.
- Run the test case execution record or test suite execution
record and select the JUnit
Selenium adapter.
What to do next
After the Selenium test runs, you can view the execution
results to see the following information:
- Overall test start and stop times
- Detailed information about each JUnit test:
- JUnit test name
- Test start and stop times
- Pass/fail status, and for failed tests, the exception that caused
the failure.
- Screen capture generated by the test