Unanswered question

Using a Computed Variable using context.variableManager.setValue() in a Request

I would like to know how to use a computed variable from a context.variableManager.setValue() be used in a request.

For Example,

context.variableManager.setValue("computedVar",computedValue);

How can this "computedVar" be inserted into my request?

Kiran M.
Kiran M.

Kiran M.

Level
0
3 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

When you use that syntax: context.variableManager.setValue("computedVar",computedValue);

It means that you are creating a NeoLoad variable called "computedVar" with the content of that JS variable "computedValue".

So you can use that newly created variable like any other NeoLoad variables like this: ${computedVar}