2

How can I save the results of a test run with the response data but without needing to re-run the test in JMeter?

I ran a test for 1 hour and I can see in the Test Results that the response data is there, however the csv file is missing them. Is there a way to save the response data of the existing test run?

sashoalm
  • 4,260

1 Answers1

2

I don't think that there is an easy way of getting this. Also be aware that if you want to save the data you're seeing in the View Results Tree listener be aware that it saves only last 500 sample results (unless you modified view.results.tree.max_results property).

  1. So if you're running your test in GUI mode and have View Results Tree listener enabled - you can click each result and save its response somewhere
  2. If you don't have the listener enabled (or you run your test in non-GUI mode) you can take a heap dump and then extract the response data from it (for example using OQL Console of the Java Visual VM you can execute heap.findClass("org.apache.jmeter.protocol.http.sampler.HTTPSampleResult") query)

    enter image description here

    switch to Instance View:

    enter image description here

    and for each instance there will be responseData

    enter image description here

Dmitri T
  • 596