Creating a Reference or a Field Reference
You can create a Reference or a Field Reference to designate a test value or to designate a set of test data. You can then use that data at different places in the test.
Before you begin
Procedure
- Identify a test from Test Navigator and double-click it.
-
Locate the value or set of data to designate the test value as a
Reference or Field Reference.
Different protocols support different references. For HTTP tests, you can create Reference and Field Reference for the following fields:
-
The response header value in the Value column of a Response Headers table
- The response content in the Content field
For HTTP responses, you can create a Field Reference for the following fields:
-
The Status field
-
The Reason field
If an HTTP response is JSON, you can create a Reference of that JSON value and use the JSON expression.
-
-
Perform one of the following steps based on your requirement:
- Highlight a value, if you are creating a Reference for the response content.
- Select a row in the Response Headers table, and then click Modify. You must then highlight a value if you are creating a Reference for the response header.
- Do not highlight a value if you want to create a Field Reference.
-
Right-click, and then click Create Reference or Create
Field Reference.
The Reference dialog is displayed.
- Click Apply and Close to apply the default values for the properties of the Reference or Field Reference.