Introduction to Custom Test Script Types

prevnext

Running a Test Script with the Command Line Adapter


The built-in Command Line test script type uses a command line execution adapter included with TestManager. This adapter allows TestManager to run any test script (more precisely, any program) that can be executed from the command line. No customization is required for this extension feature. A test script run by the command line adapter can include any of the Test Script Service (TSS) calls documented in Chapter 3.

To run a test script using the command line execution adapter:

  1. From TestManager, select File > Run Test Script > Command Line. The Specify Command Line dialog box opens.

  2. In File to run from Command Line, type the test script filename (suffix not required), or browse to the file.

    This box can also name an installed program that executes the test script. For example, perl myTestScript.pl.

    If the program must be compiled or linked, you must do this outside TestManager.

    Note: If the program includes TSS calls, it must be linked with %ratl_rthome%\rtsdk\c\lib\rttssremote.lib. (The environment variable %ratl_rthome%, pointing to your installation path, is set during product installation.) Also, the program must connect to a TestManager listener port. Appendix A provides an example of a C program that makes TSS calls.

  3. If the test script uses arguments, type them in the Arguments box.

  4. If the test script must start from a specific location, specify it in the Initial directory box.

  5. Click OK.

prevnext


Rational TestManager Extensibility Reference Rational Software Corporation
Copyright (c) 2003, Rational Software Corporation http://www.rational.com
support@rational.com
info@rational.com