Dataset Ranges

It is sometimes necessary to use unique records from a dataset for every test run, for example, in situations where each dataset record contains data to be inserted into the database, and the same data can't be inserted twice. One way to accomplish this is before running a subsequent test, delete all the records from the dataset, and replace them with new records. Another way is to limit the dataset ranges and only use a subset of records for the test.


To enable dataset ranges to do the following:

  1. In the dataset, set the Limit Dataset property to Yes.
  2. Set the starting record to use in the current test.
  3. Set the record count to set the number of records to use from the starting record.
  4. Set the auto-advance records to Yes to automatically advance the starting record (by record count amount) after each test run. If the starting record value gets larger than the actual number of records, the starting record count will reset to 1.



Test profile data

Sometimes, the parameterization data may need to change for different test profiles. For example, suppose there are multiple test profiles, each of which remaps to a different host. Furthermore, each host accepts a different set of credentials.

A single credentials dataset can store credentials for multiple test profiles by adding a test profile binding column as follows:

To do this, do the following:

  • Create a credentials dataset
  • Add a column called "Profile"
  • Fill in the data.
  • In the "Profile" column, specify the test profile name where each row will be consumed.
  • Set the Test-profile-binding column property to Profile

Blanks

If the Profile cell is left blank, then the row will be consumed by all test profiles.

  • No labels