You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2011/11/19 01:41:49 UTC

DO NOT REPLY [Bug 52214] New: Save Responses to a file - improve naming algorithm

https://issues.apache.org/bugzilla/show_bug.cgi?id=52214

             Bug #: 52214
           Summary: Save Responses to a file - improve naming algorithm
           Product: JMeter
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: sebb@apache.org
    Classification: Unclassified


At present, the numeric suffixes generated by Save Responses to a file create
file names that do not sort correctly.

This could be fixed by using sufficient leading zeros when generating the
number.

However, subsequent test runs would re-use the same numbers, so it might also
be useful to append a timestamp (e.g. YYYYMMDD-HHMM) for the start of a run.

So the generated name stem would become:

<prefix><timestamp><fixed width number>.

An alternative scheme to ensure uniqueness and chronological sorting would be
to use the result of System.nanoTime(), or System.currentTimeMillis() or an
ISO-format timestamp (with milliseconds).

Such timestamps have the advantage that the capture time is encoded in the file
name. However the disadvantage is that duplicates are not impossible, and there
will be gaps in the numbering scheme.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52214] Save Responses to a file - improve naming algorithm

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52214

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Sebb <se...@apache.org> 2011-11-21 17:20:53 UTC ---
URL: http://svn.apache.org/viewvc?rev=1204607&view=rev
Log:
Bug 52214 - Save Responses to a file - improve naming algorithm
- add fixed width numbers
- add optional timestamp
- fix synchronisation

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Re: DO NOT REPLY [Bug 52214] New: Save Responses to a file - improve naming algorithm

Posted by sebb <se...@gmail.com>.
By the way, I'm already working on a patch for this - just wanted to
get the ideas noted down.

On 19 November 2011 00:41,  <bu...@apache.org> wrote:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=52214
>
>             Bug #: 52214
>           Summary: Save Responses to a file - improve naming algorithm
>           Product: JMeter
>           Version: unspecified
>          Platform: PC
>        OS/Version: Windows XP
>            Status: NEW
>          Severity: enhancement
>          Priority: P2
>         Component: Main
>        AssignedTo: issues@jmeter.apache.org
>        ReportedBy: sebb@apache.org
>    Classification: Unclassified
>
>
> At present, the numeric suffixes generated by Save Responses to a file create
> file names that do not sort correctly.
>
> This could be fixed by using sufficient leading zeros when generating the
> number.
>
> However, subsequent test runs would re-use the same numbers, so it might also
> be useful to append a timestamp (e.g. YYYYMMDD-HHMM) for the start of a run.
>
> So the generated name stem would become:
>
> <prefix><timestamp><fixed width number>.
>
> An alternative scheme to ensure uniqueness and chronological sorting would be
> to use the result of System.nanoTime(), or System.currentTimeMillis() or an
> ISO-format timestamp (with milliseconds).
>
> Such timestamps have the advantage that the capture time is encoded in the file
> name. However the disadvantage is that duplicates are not impossible, and there
> will be gaps in the numbering scheme.
>
> --
> Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
>