Bug 63962 - Save response to file and View Results XML Log - inconsistent coding and not BodySize(which is not logged in JTL XML)
Summary: Save response to file and View Results XML Log - inconsistent coding and not ...
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.0
Hardware: PC All
: P2 normal (vote)
Target Milestone: JMETER_5.2
Assignee: JMeter issues mailing list
Depends on:
Reported: 2019-11-26 12:00 UTC by RuThaNiel van den Naar
Modified: 2019-11-26 17:11 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description RuThaNiel van den Naar 2019-11-26 12:00:16 UTC
i have problem to pair errors created by:
1) Save Response to file
2) View results 

 Save response to file is producing nice UTF-8 log.
 View results tree is producing log in some strange coding - Notepad++ is reporting as ANSI as UTF-8, Pspad is reporting it as Unicode UTF-8 no Bom.

 In log is lots of unwanted characters like:
<"&gt strings instead of "normal" ones in Save Response to file.

 When i reopen log by View Results, there is some transformation - i no more see these characters and its same as Save Response to File log.

 I tried to change:
sampleresult.default.encoding from ISO-8859-1 to UTF-8 with line:
  But nothing changed, View results logging is still the same.

I need to pair them for my errors stats generator tool, where is trying to find same response in both file, in order to find transaction controller (lb=xx), where its failing and generate some report about in which steps errors which errors are..

  I could be some workaround to to avoid to search logs for exact <responseData></responseData>  content. When i open logs in view results Tree can see in Sample results view these:
Size in bytes: XXX
Body size in bytes: XX

  There are exactly the same as size of my Save Response to File response in UTF.. So i would be able to pair it.. is this number would be loggend in View Results tree XML log.. unfortunately, i searched whole XML can there is no such number,
so i seems that its calculated during View Results tree logging.. In log is only Sent bytes number (sby) - which match number in Jmeter View result tree, where are some.. There is some by= parameter, but number not match with (Size in bytes / Body size in bytes),
i dunno is this reporting some other number or its bugged.
Comment 1 RuThaNiel van den Naar 2019-11-26 17:11:22 UTC
Ok i find out how to fix it manual for some response (bellow), but Jmeter should have option to make it itself.

 With Notepad++, you need HTML TAG Plugin.
Paste response text form view results *.jtl between ResponseData tag.
Select all text use Plugin-HTML TAG- Decode HTML entities // This magic function, C# has something for it, Java has it too, because its probably used for View Results Load results visualization.
There is problem with &apos; tag you have to replace all occurances by "'".
 In right bottom corner - change end of lines coding from Windows CR/LF to Unix LF.
  Now i have same size and response text as in case of Save Response to file.
Comment 2 The ASF infrastructure team 2022-09-24 20:38:18 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5203