Unanswered question

When creating a JavaScript in Neoload how do I get the tool to access the the Variable tool that other action access?

I have a Java script inside NeoLoad as a action and need to access the Variables inside the local Variable tool.

Todd F.
Todd F.

Todd F.

Level
0
10 / 100
points

Answers

Benoit D.
Benoit D.

Benoit D.

Level
1
249 / 750
points
Team

You can get a variable value (both defined variables and runtime variables) using this javascript line:
var myVar = context.variableManager.getValue("myVar");

Using this script you will get the current value of the variable for this virtual user.
You cannot get all the possible values of a variable using a javascript.