You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by SanderW <sa...@performancearchitecten.nl> on 2014/11/06 09:16:13 UTC

Saving all responses (including resources) during recording with filenames

Hi all,

I would like to save all the files that are recorded with the filenames as
shown in the View Results Tree listener (Like LoadRunner automatically does
during recording in the data folder)

I have tried several set-ups (order of the listeners, with/without Simple
Data Writer), but none seem to work as I would like.

I currently have this setup:
- HTTP(S) Test Script Recorder
-- View Results Tree
-- Save Responses to a file
-- Simple Data Writer

Save Responses to a file with filename prefix "C:\Temp\JMeter_recording\pre"
and Variable Name empty.
If I use the "Variable Name" field (e.g. FILENAME) I get a
NullPointerException (at
org.apache.jmeter.reporters.ResultSaver.saveSample(ResultSaver.java:183))

If I leave the "Variable Name" empty, then it does save the files, but not
the filename. 
Example of a file that is saved, is pre*null*211.gif. In the "View Results
Tree" I see [210 /__utm.gif]
So the number sometimes also seems to be 1 off. Perhaps because the
following http requests has path /

Which setup do I need to use to have the stored files like the gif to have
its correct filename (C:\Temp\JMeter_recording\pre210 /__utm.gif)?



--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by Deepak Shetty <sh...@gmail.com>.
sorry ignore my response

On Thu, Nov 6, 2014 at 8:53 AM, Deepak Shetty <sh...@gmail.com> wrote:

> >If I use the "Variable Name" field (e.g. FILENAME) I get a
> Do you actually have a variable called FILENAME? Did you verify it in
> Debug Sampler?
>
> On Thu, Nov 6, 2014 at 12:16 AM, SanderW <sander@performancearchitecten.nl
> > wrote:
>
>> Hi all,
>>
>> I would like to save all the files that are recorded with the filenames as
>> shown in the View Results Tree listener (Like LoadRunner automatically
>> does
>> during recording in the data folder)
>>
>> I have tried several set-ups (order of the listeners, with/without Simple
>> Data Writer), but none seem to work as I would like.
>>
>> I currently have this setup:
>> - HTTP(S) Test Script Recorder
>> -- View Results Tree
>> -- Save Responses to a file
>> -- Simple Data Writer
>>
>> Save Responses to a file with filename prefix
>> "C:\Temp\JMeter_recording\pre"
>> and Variable Name empty.
>> If I use the "Variable Name" field (e.g. FILENAME) I get a
>> NullPointerException (at
>> org.apache.jmeter.reporters.ResultSaver.saveSample(ResultSaver.java:183))
>>
>> If I leave the "Variable Name" empty, then it does save the files, but not
>> the filename.
>> Example of a file that is saved, is pre*null*211.gif. In the "View Results
>> Tree" I see [210 /__utm.gif]
>> So the number sometimes also seems to be 1 off. Perhaps because the
>> following http requests has path /
>>
>> Which setup do I need to use to have the stored files like the gif to have
>> its correct filename (C:\Temp\JMeter_recording\pre210 /__utm.gif)?
>>
>>
>>
>> --
>> View this message in context:
>> http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>

Re: Saving all responses (including resources) during recording with filenames

Posted by Deepak Shetty <sh...@gmail.com>.
>If I use the "Variable Name" field (e.g. FILENAME) I get a
Do you actually have a variable called FILENAME? Did you verify it in Debug
Sampler?

On Thu, Nov 6, 2014 at 12:16 AM, SanderW <sa...@performancearchitecten.nl>
wrote:

> Hi all,
>
> I would like to save all the files that are recorded with the filenames as
> shown in the View Results Tree listener (Like LoadRunner automatically does
> during recording in the data folder)
>
> I have tried several set-ups (order of the listeners, with/without Simple
> Data Writer), but none seem to work as I would like.
>
> I currently have this setup:
> - HTTP(S) Test Script Recorder
> -- View Results Tree
> -- Save Responses to a file
> -- Simple Data Writer
>
> Save Responses to a file with filename prefix
> "C:\Temp\JMeter_recording\pre"
> and Variable Name empty.
> If I use the "Variable Name" field (e.g. FILENAME) I get a
> NullPointerException (at
> org.apache.jmeter.reporters.ResultSaver.saveSample(ResultSaver.java:183))
>
> If I leave the "Variable Name" empty, then it does save the files, but not
> the filename.
> Example of a file that is saved, is pre*null*211.gif. In the "View Results
> Tree" I see [210 /__utm.gif]
> So the number sometimes also seems to be 1 off. Perhaps because the
> following http requests has path /
>
> Which setup do I need to use to have the stored files like the gif to have
> its correct filename (C:\Temp\JMeter_recording\pre210 /__utm.gif)?
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: Saving all responses (including resources) during recording with filenames

Posted by sebb <se...@gmail.com>.
On 12 January 2015 at 06:54, SanderW <sa...@performancearchitecten.nl> wrote:
> Thanks for your reply, Sebb.
>
> So it doesn't matter if you have the "Add timestamp" in the "Save Responses
> to a file" checked or unchecked.
> I would expect the null not to appear when I have that option unchecked.

It would be the empty string - i.e. invisible - except for the bug I
mentioned previously.

> And what about the filenames? Is it possible to give the files the same
> names as the HTTP requests i getting (so with a sequence number), which I
> see in the View Results tree

No, not currently.

>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721623.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by SanderW <sa...@performancearchitecten.nl>.
Thanks for your reply, Sebb.

So it doesn't matter if you have the "Add timestamp" in the "Save Responses
to a file" checked or unchecked.
I would expect the null not to appear when I have that option unchecked.

And what about the filenames? Is it possible to give the files the same
names as the HTTP requests i getting (so with a sequence number), which I
see in the View Results tree



--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721623.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by sebb <se...@gmail.com>.
On 9 January 2015 at 09:25, SanderW <sa...@performancearchitecten.nl> wrote:
> Nobody has an idea yet?
> I still can't find out where the null in the names is coming from

It's the (optional) timestamp.

It's supposed to be initialised to the empty string (or a timestamp)
at the start of a test.
However when run from the Recorder, there is no test.

Easy enough to default the field to the empty string rather than null;
it will take more effort to provide a general fix for WorkBench
elements when using the Recorder.

>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721607.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by SanderW <sa...@performancearchitecten.nl>.
Nobody has an idea yet?
I still can't find out where the null in the names is coming from



--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721607.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by SanderW <sa...@performancearchitecten.nl>.
Sure, but it's just a basic new testplan. No fancy stuff inserted yet :-)

JMeter_recording_issue.jmx
<http://jmeter.512774.n5.nabble.com/file/n5721560/JMeter_recording_issue.jmx>  
JMeter_recording.zip
<http://jmeter.512774.n5.nabble.com/file/n5721560/JMeter_recording.zip>  



--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721560.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by Bob Meliev <b....@gmail.com>.
Can you attach JMX file?


On 29.12.2014 14:38, SanderW wrote:
> Hi All,
>
> I'm still suffering from the fact that I'm not able to save all data coming
> from the server with the correct filenames.
>
> As mentioned above I have the following set-up during recording:
> Thread Group
> - Recording Controller
> - HTTP(S) Test Script Recorder
> -- View Results Tree
> -- Save Responses to a file (Filename prefix: C:\temp\JMeter_recording\ &
> Variable Name not filled)
>
> If I open http://jmeter.apache.org/usermanual/hints_and_tips.html I see 16
> items to be recorded in the View Results Tree (4x html, 1x css, 2x js, 1x
> jpg,  7x png and 1x json)
>
> In the folder "C:\temp\JMeter_recording\" I see 16 items of which most have
> the correct type, but the names are incorrect and cannot be match with the
> labels I see in the View Results tree.
> "null63.html" refers to "73 /usermanual/hints_and_tips.html"
>
> Anybody has an idea how to solve this? With a working example please
>
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721558.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>


-- 
Sincerely, Bob!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by SanderW <sa...@performancearchitecten.nl>.
Hi All,

I'm still suffering from the fact that I'm not able to save all data coming
from the server with the correct filenames.

As mentioned above I have the following set-up during recording:
Thread Group
- Recording Controller
- HTTP(S) Test Script Recorder
-- View Results Tree
-- Save Responses to a file (Filename prefix: C:\temp\JMeter_recording\ &
Variable Name not filled)

If I open http://jmeter.apache.org/usermanual/hints_and_tips.html I see 16
items to be recorded in the View Results Tree (4x html, 1x css, 2x js, 1x
jpg,  7x png and 1x json)

In the folder "C:\temp\JMeter_recording\" I see 16 items of which most have
the correct type, but the names are incorrect and cannot be match with the
labels I see in the View Results tree.
"null63.html" refers to "73 /usermanual/hints_and_tips.html"

Anybody has an idea how to solve this? With a working example please




--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721558.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Saving all responses (including resources) during recording with filenames

Posted by SanderW <sa...@performancearchitecten.nl>.
Thanks for your answer, Ankit.

I will make use of the jmeter-plugins in the future, but I have a feeling
that this should also be possible with the JMeter features itself.

As I mentioned in the first post, it is possible to save the data, but I
can't seem to get the filenames correctly. I don't know where the *null* in
the name is coming from. 
Perhaps one of the developers can answer this.



--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-all-responses-including-resources-during-recording-with-filenames-tp5721298p5721343.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org