Use Request Chaining

Help Topics
Chaining items defined in the project properties can be used with the request item properties. When you use chaining items in the request item property that accepts them, you actually specify where particular execution data piece of the previous request should be used for the current request. You can use chaining items with the following request item properties:
  • URL field.
  • Request body field.
  • HTTP headers field.
To use chaining in fields that accept them, you have to enclose them in curly braces. To display the list of available chaining items, put the cursor in the field where you want to insert the chaining and press Ctrl+Shift+Space. A list of all available chaining items is displayed and you can select the desired item from the list to automatically insert it. For more information on defining project chaining, see the corresponding topic.
Important
Using chaining is only meaningful if you are executing multiple requests because each execution will try to use some data from the previous request. It is important to note that generally chaining should not be used in request item that will be executed first because there won't be any previous request and chaining data won't be available. However, if chaining items are used with the first execution in a batch, HttpMaster will use chaining item's default value as specified in project properties.
Important
It is possible that data for used chaining item won't be available in the previous execution data, for example, if specified HTTP response header value is not available. In such a case, HttpMaster will use chaining item's default value as specified in project properties.

Chaining data in request items that generate multiple executions

If particular request item uses chaining and also generates multiple executions because of the use of parameters, chaining data for the next request is obtained from the previous request of the same request item. For example, if particular request item generates 10 executions and also uses chaining, the second execution will use data of the first execution, third execution will use data of the second execution, and so on. In short, chaining can also be used inside single request item that generates multiple executions and not only when executing multiple request items.

For step-by-step tutorial on using chaining, see the corresponding topic in How to section.