Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Jmeter share data from setupthreadgroup to normal threadgroup

How to share the list of lists variable from setupthreadgroup to a normal threadgroup in jmeter?

for instance if I have list1=[[1,2],[3,4],[5,6]] in setupthreadgroup and same I want to use in subsequent thread group. How can we achieve this?

I am trying to save this using props.put(‘listOfData’,list1) in setupThreadGroup and in normal threadGroup I am trying to access it using props.get(listOfData[1][1])

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You need to change this one:

props.get(listOfData[1][1])

to this one:

props.get('listOfData')[1][1]

props is just a shorthand for java.util.Properties, see the JavaDoc for all available functions 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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading