Lesson 1: Create a project and record a test script
In this lesson, you will use the Classics CD sample application to create a new project and start recording a test to verify that the sample application correctly totals the amount of music CDs purchased.
About this task
Disable simplified scripting and application visuals feature
About this task
Procedure
- To verify whether the feature is enabled, click .
- In the left pane of the Preferences window, expand Functional Test, then Simplified scripting.
- In the Simplified Scripting page, clear the Enable Simplified Scripting checkbox.
- In the Application Visuals page, clear all the options listed in the page for the application visuals.
- Click Apply and then OK.
Create a project
About this task
Procedure
- Click Functional Test option. to open the functional test perspective . In the Open Perspective dialog box, select the
- Click .
- Type DataDriveTutorial for the name of the new project.
- Click Finish.
Start recording
About this task
Procedure
- On the Functional Test toolbar, click Record a Functional Test Script .
- Type OrderTotal for the name of the test script.
-
Click Next.
When you create a test script, Rational® Functional Tester creates a test dataset and other test assets. Use the defaults for Private Test dataset and Sequential. A private test dataset is associated with only one script and is not available to any other scripts. When you use the sequential order, the test script accesses dataset records in the order that they appear in the dataset.
-
Click Finish.
The Rational® Functional Tester window minimizes and the Recording Monitor opens.
Start the ClassicsCD application
About this task
Procedure
- On the Recording toolbar, click Start Application().
- If necessary, click the Application Name arrow to see the options, and then select ClassicsJavaA - java.
-
Click OK.
ClassicsJavaA is build 1 of the sample application, ClassicsCD, which comes with Rational® Functional Tester.
- In the ClassicsCD application, under Composers, double-click Schubert to open the list of CDs for sale by that composer, and then click String Quartets Nos. 4 & 14.
- Click Place Order.
- Click OK to close the Member Logon window.
-
In the Place an Order window, type 1234567890 in the
Card Number field and then type 09/09 in
the Expiration Date field.
Proceed to Lesson 2. We will data-drive a test by populating the data from this dialog box.