DataLoader

Use the DataLoader step type to map a query to a test. You can run the test using query results. You do not have to create test cases each time you want to use new data for an existing test.

Load is an action associated with DataLoader step type.

Description

Loads the query and its parameters to the test. The Edit DataLoader dialog box accessed from the Recognition field displays options to map the query. See Editing the DataLoader Step Type.

Parameters

Field or Control

Definition

source

Specifies the name of the PSQuery in current DataLoader.

sourceType

Specifies the source of the data, for example ‘NMQ’ means the data source is PSQuery.

params=<SOURCE_PARAM1>:<PARAM_VALUE1>[,<SOURCE_PARAM2>:<PARAM_VALUE2>]

Specifies the parameter names and their values of the PSQuery.

ownType

Specifies the type of owner, whether the query is public or private.

rowcount=&variable

Returns the row count of query result set.

Example

This example shows the DataLoader step type with MESSAGES_FOR_MSGSETquery and the parameters.

Type

Action

Recognition

Parameters

Value

DataLoader

Load

name=Source1

source=MESSAGES_FOR_MSGSET;ownType=public;params=MESSAGE_SET_NBR:&message;