Data Usage in API Tests

Relevant for: API testing only

When you create test steps, you must assign values for input and checkpoint properties contained in your test steps.

If you would like to use data for all the properties in your test, you can data-drive all the properties of a selected step. Data-driving is the mechanism by which UFT One automatically creates data expressions that refer to data in a new, editable table.

Link property values to a data source

UFT One enables you to use an Excel file, an XML data source, a database, or a locally-created data table as possible data sources. After the data source is added to the test, you associate property values to the associated data source.

For details, see:

Back to top

Link property values to another test step

In some cases, your application passes a value between multiple processes. Therefore, in your test, you can link the output of one step to the input of another step.

Back to top

Link property values to multiple sources

You can also link your property values to multiple sources by creating a custom expression that combines manual property value input, values from a data source, and input from multiple test steps. As a result, if an application process receives its input from both a data source and the previous step, your test can reflect the same property/parameter input.

For more details, see Navigate within a data source.

Back to top

Link property values to a test variable value

In addition to linking to a data source value or another test step, you can provide the property values by linking to a test variable value or a user-defined variable.

For details, see Define API test properties or user/system variables.

Back to top

See also: