Working with Test Scripts

prevnext

Running Test Scripts


You can run test scripts either from within or outside of TestManager. Test scripts that you execute from within TestManager can run on the local host or on an agent host.

Where you run a test script depends, in part, upon your reason for running it:


Running Test Scripts in a TestManager Suite

A TestManager suite is a collection of test scripts. In TestManager, you typically run tests by running a single script or a number of scripts in a suite.

You can combine scripts of different types in the same suite -- for example, you can add your Visual Basic scripts to a suite that also contains Java, GUI, and VU scripts, and even scripts of a custom test type.

For information about adding scripts to a TestManager suite, see Rational TestManager User's Guide.

A .cls test script that you want to run inside a suite must extend the TestScript class and implement the ITestInterface_TestMain method. This method is the entry point for the class.

The following is an example of the method declaration:

Public Function ITestinterface_TestMain(
	 	 Optional ByVal args As Variant) As Variant

Running Test Scripts Outside TestManager

How you run a test script from your IDE depends on whether you are using QualityArchitect.

If a QualityArchitect test script that you want to run from Visual Basic meets the requirements described below, you can run it by clicking Run > Start.

To run a test script from your IDE when QualityArchitect is not involved, do the following:

  1. With the test script open in Visual Basic, click Run > Start.

    The RTScript - Project Properties dialog box appears.

  2. Click Start Program, and then click the browse button (containing three dots) to the right of Start Program.

  3. Select Rational\Rational Test\rttsee.exe in the Rational installation directory -- for example:

    C:\Program Files\Rational\Rational Test\rttsee.exe

  4. After rttsee.exe, type a space and the following bold text:

    C:\Program Files\Rational\Rational Test\rttsee.exe -e rttseavb ScriptName

    In the example, ScriptName is the name of your Visual Basic test script.

  5. Click OK.

prevnext


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