Lesson 2: Record a script
In this lesson, you will record a script using the HCL DevOps Test UI (Test UI) Recording Monitor.
To start at the beginning of the tutorial, see the Test UI Tutorial.
Begin recording
You are now ready to begin recording.
- To start recording, click the Record a Functional Test Script button in the product toolbar.
- In the Name field, type
Classics
(Classics is the name of the application you will be using). - Do not select the Add script to Source Control option if it is available.
- Click Open.
- In the Select Script Assets dialog, keep all defaults and click
Finish.
The Test UI window automatically minimizes, and the Recording Monitor appears.
Note: The Test 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 Test UI Recording Monitor. - Click the Monitor Message Preferences toolbar button . You can use these options to control the appearance of the text in the monitor any time.
- Click Cancel.
- Click the Insert Script Support Commands toolbar button . This opens the Script Support Functions dialog, 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
- Click the Start Application toolbar button .
- In the Start Application dialog, use the arrow to select ClassicsJavaA, if necessary, and click OK.
The Test 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
- 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 dialog, 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 the expiration 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 box.
Advance to Lesson 3: Create verification points.