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 2019/11/26 12:00:16 UTC

[Bug 63962] New: Save response to file and View Results XML Log - inconsistent coding and not BodySize(which is not logged in JTL XML)

https://bz.apache.org/bugzilla/show_bug.cgi?id=63962

            Bug ID: 63962
           Summary: Save response to file and View Results XML Log -
                    inconsistent coding and not BodySize(which is not
                    logged in JTL XML)
           Product: JMeter
           Version: 5.0
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: ruthan@email.cz
  Target Milestone: JMETER_5.2

Hello,
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:
sampleresult.default.encoding=UTF-8  
  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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63962] Save response to file and View Results XML Log - inconsistent coding and not BodySize(which is not logged in JTL XML)

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

RuThaNiel van den Naar <ru...@email.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from RuThaNiel van den Naar <ru...@email.cz> ---
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.
File->New
Encoding->UTF-8
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.