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 data-driven test to verify that the sample application correctly totals the amount of music CDs purchased.
A project is a collection of test assets such as test scripts, object maps, verification points, and datasets, that can facilitate the testing of one or more software components. You must create a Functional Test project before you can record a test.
Create a project
Create a project to store the test assets you need to test the Classics CD sample application.
- Start Rational® Functional Tester.
- Click .
- Type DataDriveTutorial for the name of the new project.
- Click Finish.
Start recording
Start recording a test script to verify that when a customer orders a music CD, the total amount charged to the credit card is the correct amount listed in the application.
- On the Functional Test toolbar, click Record a Functional Test Script().
- Type OrderTotal for the name of the test script..
- Click Next.
The Select Script Assets page opens.
When you create a test script, Rational® Functional Tester creates a test dataset and other test assets. Use the defaults on this page: Private Test dataset and Sequential. A private test dataset is associated with only one script and is not shared by any other scripts. When you use the sequential order, the test script accesses records in the dataset 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
Start the ClassicsCD application and navigate through the application to the dialog box that you will data-drive.
- On the Recording toolbar, click Start Application() to start an 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.
The sample application starts.
- In the ClassicsCD application, under Composers, double-click Schubert to open the CDs for sale by that composer, and then click String Quartets Nos. 4 & 14.
- Click Place Order.
- Click OK to close the Member Logon dialog box.
The Place an Order dialog box opens.
- In the ClassicsCD application, type 1234567890 in the Card Number box and 09/09 in the Expiration Date box.
Advance to Lesson 2: Data-drive a test.