Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Responses to a file - improve naming algorithm #2652

Closed
asfimport opened this issue Nov 19, 2011 · 1 comment
Closed

Save Responses to a file - improve naming algorithm #2652

asfimport opened this issue Nov 19, 2011 · 1 comment

Comments

@asfimport
Copy link
Collaborator

Sebb (Bug 52214):
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.

OS: Windows XP

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
URL: http://svn.apache.org/viewvc?rev=1204607&view=rev
Log:
#2652 - Save Responses to a file - improve naming algorithm

  • add fixed width numbers
  • add optional timestamp
  • fix synchronisation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant