< 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 Rational Functional Tester 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

Data-driven test script


Learning objectives

After completing this tutorial, you will be able to:

Consider printing the tutorial before you begin and using the printed copy as you work through the lessons. To print this tutorial, see Printing multiple topics and creating PDFs


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.


Lessons in this tutorial

< Previous | Next >