Bug 43119 - Configuration of 'Save Responses to a file' to allow original filename and relative path of content to be retained
Summary: Configuration of 'Save Responses to a file' to allow original filename and re...
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: unspecified
Hardware: Other other
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 06:19 UTC by Simon Brown
Modified: 2009-05-08 19:22 UTC (History)
1 user (show)



Attachments
Patch to add option to toggle auto-numbering of save filenames (4.49 KB, patch)
2008-10-08 17:08 UTC, bret barker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Brown 2007-08-14 06:19:24 UTC
It would be nice to be able to configure the 'Save Responses to a file' so when
you access the saved content all the data is in the relevant relative 
directories e.g. images in img dir, css in css dir etc.  This would 
mean all content is rendered correctly as it was on the original web 
page.  Also, it would be useful to be able to turn off the numbering mechanism, so 
that the original file name is retained for the saved response.

Regards,

Simon
Comment 1 bret barker 2008-10-08 17:08:10 UTC
Created attachment 22698 [details]
Patch to add option to toggle auto-numbering of save filenames

Adds a new checkbox "Don't Auto Number" that when checked will skip appending of the auto-increment number on the end of the filename for the save file. I personally needed this to be able to maintain predictable filenames for use as input to subsequent PUT/POST requests.

What's the review process to get this into the SVN trunk?
Comment 2 Sebb 2008-10-09 08:24:54 UTC
Thanks, patch added to SVN trunk:

URL: http://svn.apache.org/viewvc?rev=703180&view=rev
Log:
Bug 43119 - Save Responses to file: optionally omit the file number

I changed the button text slightly.
Comment 3 Sebb 2008-10-09 08:34:41 UTC
Regarding retaining the relative directories of downloaded resources - that will only work if the embedded resources are specified using relative URLs.

Save Responses saves an exact copy of the downloaded file; it will not rewrite URLs.
Comment 4 Sebb 2009-05-08 19:22:03 UTC
Also added option to omit suffix generation
Comment 5 The ASF infrastructure team 2022-09-24 20:37:40 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1991