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

You must have recorded a test.

Procedure

  1. Identify a test from Test Navigator and double-click it.
  2. 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.

  3. Perform one of the following steps based on your requirement:
    1. Highlight a value, if you are creating a Reference for the response content.
    2. 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.
    3. Do not highlight a value if you want to create a Field Reference.
  4. Right-click, and then click Create Reference or Create Field Reference.
    The Reference dialog is displayed.
  5. Click Apply and Close to apply the default values for the properties of the Reference or Field Reference.

Results

You have created the Reference or Field Reference.

What to do next

You can select the Reference value for the response. See Selecting a Reference in a response.