Unanswered question

Parameters inside Parameters

Hi there!

I would like to try to substitute parameters inside another parameter. The reason is that I would like to avoid a huge file of parameters, since the mix of N X M is big. If I can put a logic where I can put a parameter inside another one will be really helpful.

Ex:
Param2 = 1234
Param1 = TextADAD${Param2}BCSDST

So when I use ${Param1} I have already a string build. Not sure if this is possible via JS, since I tried direct substitution and the "inside" evaluation doesn't work.

Thank you in advance!

Ageo D.
Ageo D.

Ageo D.

Level
0
5 / 100
points

Answers

christophe M.
christophe M.

christophe M.

Level
3
3939 / 5000
points
Team

Hi Ageao,

You can handle it through the Javascript action.

You should use the parseString method : context.variableManager.getValue("TextADAD${Param2}BCSDST")
Documentation: https://www.neotys.com/documents/doc/neoload/latest/en/html/#581.htm#o589