# Link

{% hint style="warning" %}
The feature is available for [paid TestMace subscribers](https://testmace.com/pricing/) only.
{% endhint %}

A **Link assertion** allows to create a link to another template assertion node in the project tree and run it with this node's context setting variables as parameters. This is how you can put some amount of standard tests for your requests into one node and reuse it later.

This **assertion** interface is as follows:

![](/files/-M4i57b2GZk6WLOpfra3)

First, you'll need to create an [Assertion node](https://docs.testmace.com/node-types/assertion-node) in your project or folder and add some assertions there. For example:

![](/files/-M4i5B8cVwG9Le5YlNKD)

{% hint style="info" %}
Note that assertion expressions contain the `$host` variable - the context of the node from which the Assertion node will be run via a link, i.e. an object that contains variables, dynamic variables, and response.
{% endhint %}

Second, add a link assertion and click the Choose Assertion button to choose the node you've just created. You can create a variable right in an assertion and then use it in template expressions, for instance `${$host.my_var}`.

![](/files/-M4i5H68qkJLolNeYjcQ)

If you send a request, you'll notice that the template assertion node's state is changed. If you open this node, you'll see the last node that passed the context to it while the run. After this, variables highlighting and autocomplete will be available.

![](/files/-M4i5JiIyH--IvbH2I3m)

### Error Fixing

This **Assertion** doesn't have any error fixing algorithm.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testmace.com/node-types/assertion-node/link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
