Answered question

How do I add a prefix or suffix to a random variable?

I came across an issue where I need to build a value in my requests. This value will have a static and dynamic part. The dynamic part should come from input data that is already available. How could I easily build the whole value?

Support
Support

Support

Level
0
-10 / 100
points
Team
Support
Support

Support

Level
0
-10 / 100
points
Team

NeoLoad provides some possibilities to create variable to help you during your design of your scenario.

A NeoLoad variable has this syntax: ${MyVariable}. You can then mix that syntax with any other text to create a composed variable.

In that case, you can create a random variable that corresponds to the variable part of the string to be generated.

Then use the following string structure: "product_${productID}".

 

For more information, see "Variable extractors" under "Design" section in the NeoLoad documentation.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful