Lesson 2: Record a script

In this lesson, you will record a script using the HCL OneTest UI Recording Monitor.

To start at the beginning of the tutorial, see the HCL OneTest UI Tutorial.

Begin recording

You are now ready to begin recording.

  1. To start recording, click the Record a Functional Test Script button Record a Functional Test Script in the product toolbar.
  2. In the Name field, type Classics (Classics is the name of the application you will be using).
  3. Do not select the Add script to Source Control option if it is available.
  4. Click Open.
  5. In the Select Script Assets dialog box, keep all defaults and click Finish.

    The HCL OneTest UI window automatically minimizes, and the Recording Monitor appears.

    Note: The HCL OneTest UI 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 monitor and shows only the toolbar. Leave the monitor displayed during this tutorial. For more information about the monitor and its toolbars, see The HCL OneTest UI Recording Monitor.
  6. Click the Monitor Message Preferences toolbar button Monitor Message Preferences. You can use these options to control the appearance of the text in the monitor any time.
  7. Click Cancel.
  8. Click the Insert Script Support Commands toolbar button Insert Script Support Commands. This opens the Script Support Functions dialog box, 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.
  9. Click Close.

Start the application

  1. Click the Start Application toolbar button Start Application.
  2. In the Start Application dialog box, use the arrow to select ClassicsJavaA, if necessary, and click OK.

The HCL OneTest UI Tutorial sample application, ClassicsCD, opens.

If the Recording Monitor is in front of the application, you can click the monitor's title bar and drag it to the lower right corner of the screen.

Record actions

You are going to record placing an order in this application

  1. Click the + next to Haydn to expand the folder in the Composers tree.
  2. In the list, click Symphonies Nos. 94 & 98.
  3. Click the Place Order button.
  4. In the Member Logon dialog box, keep the default settings of Existing Customer and Trent Culpito.
  5. Do not click either of the password fields at this time. Click OK.
  6. 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.
  7. In the expiration date field, enter a valid format expiration date, 06/09.
    Note: Date can be same or later than the system date.
  8. Click Place Order.
  9. Click OK in the order confirmation message box.

Advance to Lesson 3: Create verification points.