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.

  1. Start HCL OneTest UI.
  2. Click File > New > Functional Test Project.
  3. Type DataDriveTutorial for the name of the new project.
  4. 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.

  1. On the Functional Test toolbar, click Record a Functional Test Script(Record a Functional Test Script).
  2. Type OrderTotal for the name of the test script..
  3. Click Next.

    The Select Script Assets page opens.

    When you create a test script, HCL OneTest UI 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.

  4. Click Finish.

    The HCL OneTest UI 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.

  1. On the Recording toolbar, click Start Application(Start application) to start an application.
  2. If necessary, click the Application Name arrow, to see the options, and then select ClassicsJavaA - java.
  3. Click OK.

    ClassicsJavaA is build 1 of the sample application, ClassicsCD, which comes with HCL OneTest UI.

    The sample application starts.

  4. 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.
  5. Click Place Order.
  6. Click OK to close the Member Logon dialog box.

    The Place an Order dialog box opens.

  7. 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.