Lesson 2: Record a script
In this lesson, you will record a script using the Rational® Functional Tester Recording Monitor.
Begin recording
About this task
Procedure
- To start recording, click the Record a Functional Test Script button in the Functional Test toolbar.
- Select the FTtutorial project that you just created.
- In the Script name field, type Classics (the name of the application you will be using).
- Do not select the Add script to Source Control option if it is available.
-
Click Finish.
The Rational® Functional Tester window automatically minimizes, and the Recording Monitor is displayed.Learn more about Recording Monitor: The Rational® Functional Tester Recording Monitor is displayed every time you begin recording. You can minimize the monitor if you don't want it to be visible on the screen, and you can also resize it. You can also click the Display Toolbar Only button (), which hides the recording monitor and shows only the toolbar. Click the Display Monitor button () to bring it back. Leave the monitor displayed during this tutorial. The monitor displays messages for every action performed during your recording session, such as starting and pausing the recording, starting an application or browser, clicking within an application, inserting verification points, and inserting other items into the script.
- Click the Monitor Message Preferences toolbar button . You can use these options any time to control the appearance of the text in the monitor.
- Click Cancel.
-
Click the Insert Script Support Commands toolbar button .
This opens the Script Support Functions window, which allows you to call another script, insert a log entry, insert a timer, insert a sleep command (a delay), or insert a comment into your script.
- Click Close.
Start the application
Procedure
- To start the test application, click the Start Application toolbar button .
-
In the Start Application window, select ClassicsJavaA and then
click OK.
The Rational® Functional Tester Tutorial sample application, ClassicsCD, opens. If the Recording Monitor is in front of the application, you can drag it to the lower right corner of the screen.
Record actions
About this task
Procedure
- Click the + next to Haydn to expand the folder in the Composers tree.
- In the list, click Symphonies Nos. 94 & 98.
- Click the Place Order button.
- In the Member Logon window, keep the default settings of Existing Customer and Trent Culpito. Do not click either of the password fields at this time.
- Click OK.
- In the card number field, enter a credit card number. You must use the valid format of four sets of four digits here, for instance, 7777 7777 7777 7777.
-
In theexpiration date field, enter a valid format expiration
date, 06/09.
Note: Date can be same or later than the system date.
- Click Place Order.
- Click OK in the order confirmation message window.