Skip to content

Link Action

Link action

The Link Action lets you re-use parts of a Virtual User across your load testing project.

Script reuse

Fragments Virtual User contains actions that can only be executed at runtime by being linked using Link actions.

In the above screenshot the link action will be replaced by the container Home Page of the virtual user Test Fragment.

Action Selection

Simply select a container action in the tree to have it injected in place of the Link Action during test execution.

Warning

Only container actions present in a Virtual User of type Fragments can be selected.

Cyclic dependency

When using links within links, cyclic dependencies can happen, since they could lead to infinite loops, we detect them before the script is executed and they must be fixed:

cyclic-dependency

Clicking the magnifier icon shows us:

cyclic-dependency-example

We can clearly see that this link is referencing himself. This behavior must be changed before proceeding with a test.

Click on the Open Link button bellow the linked action tree or directly on the magnifier icon on the upper right corner of the action to go the the linked Virtual User / Action.

Note

When validating a virtual user you can see the debug result by using this Open Link button.

Be aware though that directly opening the linked Virtual User from the design page will not display debug results.