Create Transaction Name Dynamically ?

28 views
Skip to first unread message

Avinash Kumar

unread,
Apr 24, 2024, 10:28:31 AMApr 24
to JMeter Forum
Hi there,

Is there any code I can use in JSR223 to create a transaction name ?

Thanks,

Avinash

DT

unread,
Apr 24, 2024, 10:33:40 AMApr 24
to JMeter Forum
You can rename a Sampler using i.e. JSR223 Post-Processor via prev.setSampleLabel() function


Demo:

Apr-24-2024 16-30-56.gif

In the above example prev stands for previous SampleResult, see the JavaDoc for all possible functions with descriptions and Top 8 JMeter Java Classes You Should Be Using with Groovy article for more information on this and other JMeter API shorthands available for the JSR223 Test Elements
Reply all
Reply to author
Forward
0 new messages