Testing with .otd test scripts

You can add, configure and execute .otd test scripts in a standalone mode or from a test suite in Rational® Test RealTime for Eclipse IDE.

About this task

You must import the .otd file in a project and configure the test script to be able to execute it and see the results.

Procedure

  1. Select File > Import and choose General > File System and select the files that you want to import.
    Note: You can import these files in any folder at any file structure level.
  2. Follow the instructions that are described in the Configuring .ptu or .otd test scripts page to configure .otd test scripts.
  3. To execute .otd files, use one of the following methods:
    • Right-click the .otd file and choose Run as > Test script file.
    • Alternatively, proceed as follows:
      1. Select Run Configurations.
      2. Select the .otd file under Test Script file, in the dialog that opens.
      3. Right-click and select New to create a new launch configuration.
      4. Set a name to your launch configuration.
      5. Select your .otd file in Select Application panel, in the Testing Script tab.
      6. Select your configuration in the Configurations panel and click Run. The reports are available into the Test Result folder.
    • To execute multiple .otd test scripts from a Test Suite, see Running a test suite.
    A test report and runtime analysis reports are generated. The reports are available into the Test Result folder. From these files, you can open the appropriate HTML reports.
  4. To open the reports, select the report file corresponding to your last execution, right-click and select Open With > Test Report.