Datapool Creation Example


+

Search Tips   |   Advanced Search

 

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

For example, you would replace the user name and password values, the employee name search values, or both, with values that datapools contain.


  1. Create the datapool.
  2. Create a datapool called "mekons"...

    ...containing...

    • Sally Timms
    • Jon Langford
    • Tom Greenhalgh
    • Lu Edmonds
    • Susie Honeyman
    • Sarah Corina
    • Rico Bell
    • Jessica Billey


  3. Record a test.
  4. Go to RPT page and search for Sally Timms.


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

    The test elements that have a yellow background contain data that can be substituted or is already substituted (by either a datapool or data correlation.


  7. Associate a particular request with a particular column in the datapool.
  8. When you click on a request...

    ...the datapool candidates appear in green in the Test Element Details area, and they are identified as such when you click on them. The following figure identifies Sally+Timms as a datapool candidate.

    If you click a little higher in the Test Contents navigation tree, you will see a tabular view in the Test Elements Detail pane...

  9. To associate Sally+Timms with a datapool column, select it, right-click, and click...

      Substitute from | Datapool Variable

  10. Associate request with a datapool column.

  11. After you have associated the request with the datapool column, Mekons+Sally+Timms changes to a dark green background to indicate that it is datapooled.

    Items that have been modified appear in italics; the italics are removed after you save the test.

  12. You can also see association if you click a little higher in the Test Contents navigation tree...


Related concepts

  • How datapool options affect values that a virtual user retrieves
  • Encrypted datapools overview


    Related tasks

  • Create a datapool associated with a test
  • Create a datapool in the workspace
  • Importing a CSV file into a datapool
  • Enable a test to use a datapool
  • Associating a test value with a datapool column
  • Viewing datapool candidates when you open a test
  • Editing a datapool
  • Using a digital certificate store with a datapool
  • Navigate between a datapool and a test