< Previous | Next >

Introduction: Perform a data-driven functional test using Java scripts

In this tutorial, you will learn how to create a data-driven test using a variety of realistic data to test the application with the HCL OneTest™ UI data-driver wizard.
You will use the ClassicsCD sample application to create a project and record a Java test script to verify that the ClassicsCD sample application correctly totals an order. You will also create a verification point with a datapool reference to check that the total amount of the order is correct in the Classics CD application.
A datapool is a collection of related data records. A datapool supplies data values to the variables in a test script during test script playback. Data-driven testing uses data from an external file, a datapool, as input to a test.

The diagram on the left shows a test script that uses data with hard-coded, literal references in the test script. The diagram on the right shows a data-driven test script that uses data from an external file, a datapool.

Hard-coded test script

Hard-coded test script

Data-driven test script

Data-driven test script

Learning objectives

After completing this tutorial, you will be able to:

  • Create a project and record a Java test script
  • Data-drive a test
  • Add descriptive headings to the data
  • Create a verification point with a datapool reference
  • Add data to the datapool
  • Play back the test

Time required

This tutorial should take approximately 30 minutes to finish. If you explore other concepts related to this tutorial, it could take longer to complete.
< Previous | Next >
Feedback