Datapool overview

Datapools provide tests with variable data during a run.

When you record a test, you perform a sequence of steps that you expect a typical user to perform. From the recording, a test is generated that exactly captures these interactions. When you run this test, it uses the same data that you used during recording. To vary the data in the test, you use a datapool, which contains variable data. At run time, this variable data is substituted for the data in the recorded test.

Assume that you plan to create a test that searches the HCL website for three items: HCL OneTest™ Performance, HCL OneTest UI, and IBM® Rational® Manual Tester. Here is what to do.
  1. Record a test that searches for one item.
  2. Create the datapool and associate it with the test. For more information about this subject, see Creating a datapool associated with a test.
  3. Associate a particular request in the test with a particular column in the datapool.

    For more information about this subject, see Associating test data with a datapool column

  4. Add a loop in the test to fetch the values from different rows of a datapool. A test without a loop fetches the value only from the first row of datapool.

Create the datapool. Create a datapool with three items.

Record a test. Type the web address , search for a term, , and stop recording.

Associate the test with the datapool. To associate a test with a datapool, click Add Datapool, and select the datapool.

Associate a particular request with a particular column in the datapool. When you click a request, the datapool candidates are displayed in green in the Test Element Details area, and they are identified as such when you click them.
  • If part of the Test Element Details area is obscured, move your cursor over one of the blue lines until it changes to a vertical bidirectional arrow arrow, and drag it up or down while holding the mouse button.
  • If you substitute an element of a page with a datapool column, to view the substitutions in the Page Elements report, in the Test Elements Details area of the request click the Use the substituted URL in performance reprots check box.