Bug 40773 - XML JTL not parsed correctly
Summary: XML JTL not parsed correctly
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.2
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-17 00:01 UTC by Rubén Laguna
Modified: 2006-10-20 16:35 UTC (History)
0 users



Attachments
svn patch file for files SampleResult.java and SampleResultConverter.java (1.95 KB, patch)
2006-10-17 03:03 UTC, Rubén Laguna
Details | Diff
svn patch file for files SampleResult.java and SampleResultConverter.java (2.10 KB, patch)
2006-10-17 05:41 UTC, Rubén Laguna
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rubén Laguna 2006-10-17 00:01:14 UTC
When loading xml jtl into the summary report listener the thoughput is
incorrect. The problem is caused by SampleResultConverter.java. When it creates
SampleResults  from the xml input it sets the startTime of the sampleResult to
the current time of the machine not to the actual timestamp stated in the xml as
the old jtl file format parser does. 

The actual conflicts comes from the SampleResultConverter.retrieveAttributes
method when it makes the call to SampleResult.setTime(). This call doesn't allow
to specify the startTime so the starttime is set to (System.currentTimeMillis()
- elapsed).
Comment 1 Rubén Laguna 2006-10-17 03:03:08 UTC
Created attachment 19011 [details]
svn patch file for files SampleResult.java and SampleResultConverter.java

Uses the timestamp of the sample for startTime. Previous version used current
time on the machine leading to wrong throughput calculations
Comment 2 Rubén Laguna 2006-10-17 05:41:01 UTC
Created attachment 19013 [details]
svn patch file for files SampleResult.java and SampleResultConverter.java

same as Attachment #19011 [details] but without changing method signatures.
Comment 3 Sebb 2006-10-20 16:35:03 UTC
Thanks.

The code in SVN branch 2.2 has been fixed, and is in the nightly build:

2-2.20061020
Comment 4 The ASF infrastructure team 2022-09-24 20:37:38 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1812