Unanswered question

How to store the variable in neoload which are returned by java code

I have written a java code which returns same variable. when i call it from javascript is it possible to store the returned values in my variables? if yes what is the syntax?

Sadasivuni V.
Sadasivuni V.

Sadasivuni V.

Level
1
317 / 750
points

Answers

In NeoLoad design section if you drag and drop a Javascript from the action area you have a squeleton of examples like how to get a value from a variable or how to store a value in a new variable with the setValue method.

For instance this is the syntax:

context.variableManager.setValue("computedVar",computedValue); where "computedVar" is the name of the variable that will be created and "computedValue" is here a variable that contains the content that you will store into that variable.