tilln / jmeter-iso8583

ISO8583 Plugin for JMeter
MIT License
62 stars 32 forks source link

I want to save random STAN to a variable #47

Closed imhamzaazam closed 2 years ago

imhamzaazam commented 2 years ago

Right now i have assigned random string to stan and I want to save it to a variable so I can log it in an excel file

11: ${__RandomString(6,012345678,)}

Any idea how i might do that?

tilln commented 2 years ago

That's pretty easy: __RandomString, like most JMeter functions, takes as a last, optional parameter the name of a variable in which to store the function's output.

So you would simply do 11: ${__RandomString(6,012345678,STAN)}