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

How can I dynamically assign multiple values returned from a response to variables in Apache jmeter? (number of elements in array may vary)

enter image description here
elimde testten dönen bir response datası var buradaki "satisSiparisDetayId" lerin hepsini alıp (sayıları değişiklik gösterebilir) değişkenlere atmam lazım bunu apache jmeter da nasıl yapabilirim?

>Solution :

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

Go for JSON Extractor configured like:

  • Names of created variables: anything meaningful, i.e. satisSiparisDetayId
  • JSON Path Expressions: $..satisSiparisDetayId
  • Match No.: -1

enter image description here

This way you will get the following JMeter Variables created:

satisSiparisDetayId_1=7
satisSiparisDetayId_2=8
satisSiparisDetayId_3=9
satisSiparisDetayId_4=10
satisSiparisDetayId_matchNr=4

enter image description here

More information:

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