Tool Mentor: Create Test Scripts Using IBM Rational Functional Tester
This tool mentor describes how to use IBM Rational Functional Tester to create a functional test script.
Tool: IBM Rational Functional Tester
Relationships
Main Description

Overview

To create a test script in IBM® Rational® Functional Tester, you can start by recording a script, or you may elect to create the script manually. For information on how to create a script manually, refer to the topic Creating a New Functional Test Script without Recording in the Rational Functional Tester online Help.

This tool mentor describes how to create a script by recording it. There are many things you can do with script creation. This tool mentor addresses one of the more commonly performed operations, namely, verification point creation.

Tool Steps

To create a test script using Rational Functional Tester, perform the following steps:

  1. Create a Folder to Contain the Scripts
  2. Create the Script
  3. Create Verification Points

1. Create a Folder to Contain the Scripts

To begin creating scripts, it is helpful to create folders to contain the scripts. This will become useful once more scripts are added to the test project.

  1. To create a folder, right-click the given project in the Projects view
  2. Select Add Test Folder from the context menu
  3. Enter a name for the folder and click Finish

2. Create the Script

You can now populate the folder with scripts. (You may also choose to create scripts directly from the project itself.) There are several ways to create test scripts. This tool mentor will focus on using the recording features of Rational Functional Tester to create scripts.

  1. Right-click the folder in the Projects view.
  2. Select Add Script Using Recorder from the context menu. The Record a New Function Test Script Wizard appears.
  3. Name the script and click Finish. The Functional Test Recording monitor appears. The Functional Test Recording monitor allows you to start the application under test, record actions, record verification points, and add data-driven elements to the given script while you are recording it.

For more information on script recording, refer to the following topics in the Rational Functional Tester online Help:

  • Configuring Functional Test Before You Record
  • Recording a Script
  • Functional Test Recording Monitor

3. Create Verification Points

In most cases, you will create a verification point while you are recording a script. You can also insert a verification point from the Script Editor when you are not recording.

To create a verification point in your script, perform the following steps:

  1. Start your test application if it is not already open
  2. Open the script you want to insert the verification point into so that it is displayed in the script window
  3. Put the cursor at the place in the script where you want to insert the verification point
  4. Right-click Verification Points in the Script Explorer, and click Insert Verification Point. The Verification Point and Action Wizard opens
  5. On the Select an Object page, use one of the selection methods to pick the object in your application, and click Next
  6. On the Select an Action page, select one of the verification point types. Click Next
  7. Edit the verification point properties or data
  8. Click Finish

The verification point will be added to your script at the location of the cursor, and will be added to the Script Explorer in the Verfication Points list.

For more information on how to create verification points, refer to the topics Creating a Properties Verification Point and Creating a Data Verification Point in the Rational Functional Tester online Help.