0

My Jmeter response looks like..

https://adcd.com/abc/bcd/mock.jsp?profile=teslatest&JTnumber=132323235674897&SUTest=27&SUName=Alexa&TARGET=abcd.com">

How to extract JTnumber from this and store in a csv? How about if we have 20 different JTnumbers from 20 responses? How to save all in a csv??

Please help me in achieving this..!!

Tech User
  • 39
  • 3

1 Answers1

0
  1. Add the next line to user.properties file (lives in "bin" folder of your JMeter installation)

    sample_variables=JTnumber
    

    see Sample Variables chapter of the JMeter User Manual for more information.

  2. Restart JMeter to pick the property up
  3. Add Regular Expression Extractor as a child of the request which returns the above response and configure it like:

    enter image description here

  4. Add Flexible File Writer to your Test Plan and configure it like:

    enter image description here

  5. That's it, when you run the test you will see values.csv file in the "bin" folder of your JMeter installation containing all these JTnumber values, each on new line
Dmitri T
  • 159,985
  • 5
  • 83
  • 133