Working with Test Scripts

prevnext

Creating Test Scripts


You can create a Java test script in any of these ways:


Entry Points

A Java test script must extend the following base class:

com.rational.test.tss.TestScript

The entry point that you need to include in your test scripts varies, depending on whether you intend to run the script inside or outside of TestManager. For more information, see Running Test Scripts.


Registering Test Script Source Folders

If you create a test script in your IDE and manually code it, you must inform TestManager of the root test script source folder where the script is stored. To do so:

  1. Click Tools > Manage > Test Script Types.

  2. Select Java Script, and then click Edit.

  3. Click the Sources tab, and then click Insert.

  4. On the General tab, type a name for the test script source folder.

    This name is added to the TestManager File menus. You select this name when creating, editing, and running test scripts stored in the source folder.

  5. Click the Connection Data tab, and then type the full path of the test script source folder in the Data path box. This is the name of a project folder that you have created using your IDE.

  6. Type the following values, exactly as shown, into the Option name and Option value columns:
    Option name Option value
    Type Java
    Default datastore 0

  7. Click OK. The new source folder name appears in the Sources list.

prevnext


Rational Test Script Services for Java Rational Software Corporation
Copyright (c) 2003, Rational Software Corporation http://www.rational.com
support@rational.com
info@rational.com