Skip to content

Link Action

Link action

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

The easiest way to create a link action is to transform existing nodes of your virtual user:

move-as-link

This way they will now be available as link actions from any other virtual user profile in the same project:

add-link-action

Warning

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

Script reuse

When a virtual user is executed every link action will point to the corresponding action inside a Fragments virtual user:

link-validation

Info

This can be used to merge statistics from several virtual user profiles into one. This way you can have only one entry for your login in the result table instead of one per virtual user.

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.

Importing from JMeter

Link actions are automatically created upon importing a JMX that contains either a module controller or an include controller.