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.

10 / 100


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.