Datapool overview


Overview

To vary the recorded data in a test, use datapools. At run time, the variable data in the datapool is substituted for the data in the recorded test.


Example: Associate a datapool containing search terms with a test

  1. Select...

      Project_Name (right-click) | New | Datapool

  2. Name the datapool

  3. Set columns to 1 and rows to 3

    If you have a csv file to import, check the box...

      Import CSV file into the new datapool

  4. Enter some search terms

  5. Save changes

    The saved datapool is displayed in the Test Navigator

  6. Record a new HTTP test

  7. Give it a descriptive name...

  8. Select your client application

    The browser opens

  9. Enter one of your search phrases.

    ...and execute the query...

  10. Close the browser to stop the recording

  11. Open your new test

  12. Select...

      Add | Datapool

  13. Select the new datapool

  14. Set the Access Mode

  15. Find the line with the query for which to make a substitution.

  16. In the Element Details panel, right-click the green-highlighted search term and select...

  17. Select your new datapool

  18. Click close on the Substitute multiple items page...


IBM search example - Datapool setup

This example assume to create a test that searches the IBM website for three items:

  1. Create a datapool with three items.

  2. Record a test

  3. Go to www.ibm.com/us/ and search for...

      IBM Rational Performance Tester

  4. Stop the recording.

    The following output is generated.

  5. Create a datapool and associate with a test.

  6. Click Add Datapool, and select the new datapool.

    The test elements that have a yellow background contain data that can be substituted or is already substituted.

  7. 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. The following figure identifies IBM+Rational+Performance+Tester as a datapool candidate. To associate IBM+Rational+Performance+Tester with a datapool column, select it, right-click, and click Substitute > Select Data Source.

    If part of the Test Element Details area is obscured, move your cursor over one of the blue lines until it changes to a

    , and drag up or down while holding the left mouse button.

    After you have associated the request with the datapool column, IBM+Rational+Performance+Tester changes to a dark green background to indicate that it is associated to a datapool, as shown in the following figure. Items that have been modified are displayed in italics; the italics are removed after you save the test.


Related:

Datapool options
Encrypted datapools
Create a datapool and associate with a test
Create a datapool in the workspace
Import a CSV file into a datapool
Enable a test to use a datapool
Associate a test value with a datapool column
View datapool candidates
Edit a datapool
Use a digital certificate store with a datapool
Navigate between datapools and tests


Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.