Daldorph
Daldorph

Reputation: 47

Can I reference an existing variable when defining a new variable in Neoload

I am defining some new variables in NeoLoad as in this screenshot:

enter image description here

I will be defining at least 10 variables like this, so the question is if it is possible to reference an existing variable in the host field? Imagine it like ${db_host} but that does not work.

Upvotes: 1

Views: 436

Answers (3)

mediouane
mediouane

Reputation: 45

This option is not possible with neoload, but you can insert a JavaScript element in your test to do that

Upvotes: 0

Dan Ferrell
Dan Ferrell

Reputation: 11

This is not possible with the latest version of NeoLoad.

Upvotes: 0

Zakaria M
Zakaria M

Reputation: 11

No you can't. but if you use javascript, you can manipulate the variables easily. Example : var ENV = context.variableManager.getValue("ENV"); var IDPART_REQ1 = context.variableManager.getValue(ENV + "-JDD-REQ1.IDPART");

Upvotes: 1

Related Questions