Test data sources overview
Overview
Use the Test Data Sources window to add or change data correlation for any supported test element.The test generator attempts to perform automated data correlation. You can also manually correlate request values with other test data.The Test Data Sources window displays the following types of data for substitution...
- References
- Datapools
- Custom code
- Test variables such as Host and Host_Port
- Built-in variables such as Current Date and Timestamp.
You can right-click references, custom code, and built-in variables to display a menu containing commonly used commands.
The toolbar and a menu at the top of the Test Data Sources window performs common operations, such as...
- Creating a datapool
- Switching from tree view to list view.
The Substitute From button is enabled when you select...
- Substitution site in the test editor
- Data source from one of the five categories in the Test Data Sources window
Click Substitute From to correlate the data source and the substitution site.
References
Shows data sources created in the test and potential matches available for substitution.
For example, text that is found in a response and used in a subsequent request, such as a SessionId, is automatically created as a reference.
To see all the references that occur before substitution, clear the checkbox...
Matching References Only
To see a list of locations that might match the substitution site select...
Include Potential Matches
Replace the text type filter text with keywords to filter the list of references.
Select a reference in the References table to display the reference in the pane at the bottom of the window.
Use the buttons to the left of the preview pane to switch between inline view and tree view.
Datapools
The datapools that have been added to the test.
To add a new datapool, click the Add new Datapool icon ().
Custom Code
Available if Test Execution Services (TES) custom code has been written.
Test Variables
Replace the text type filter text with keywords to filter the list of test variables
Built-in Variables
Dynamically calculated variables, including Current Date and Timestamp, available as data sources for this substitution site.
To create a built-in variable, right-click inside the Built-in Variables page, and select New, or click the New button at the top of the window.
Detach the Test Data Sources window
The Test Data Sources window is detachable.
To detach the Test Data Sources window, right-click the Test Data Sources tab, and then select Detached. When detached, the Test Data Sources window is always displayed in front of the other windows that make up the workbench.
Related
Correlate a request value with test data Substitute request content from a file Data correlation overview Guidelines for adjusting data correlation View data correlation Create a reference or field reference Correlate multiple fields in a test Disable data correlation Re-correlate test data