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 2015/11/13 09:11:19 UTC
[Bug 58606] New: using the method of setSampleLabel( String s ) in Class SampleResult, FYI:s contain \” character. the output in jtl file will double the \" character
https://bz.apache.org/bugzilla/show_bug.cgi?id=58606
Bug ID: 58606
Summary: using the method of setSampleLabel( String s ) in
Class SampleResult, FYI:s contain \” character. the
output in jtl file will double the \" character
Product: JMeter
Version: 2.12
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: g7n3f@126.com
the code in the class extended AbstractJavaSamplerClient:
String cmd = "test\"test"
SampleResult sr = new SampleResult();
System.out.println("debug1:"+ cmd);
sr.setSampleLabel("debug2:" +cmd);
run the jmeter.sh with -l debug.jtl:
the screen will print:
debug1:test"test
and the output in debug.jtl is:
debug2:test""test
FYI:the output have double " charactor.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58606] In Class SampleResult,using the method of setSampleLabel( String s ) , FYI:s contain \” character. the output in jtl file will double the \" character
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58606
Ejay <g7...@126.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|using the method of |In Class SampleResult,using
|setSampleLabel( String s ) |the method of
|in Class SampleResult, |setSampleLabel( String s )
|FYI:s contain \” character. |, FYI:s contain \”
|the output in jtl file will |character. the output in
|double the \" character |jtl file will double the \"
| |character
Priority|P2 |P3
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58606] In Class SampleResult,using the method of setSampleLabel( String param ) , FYI: param contain \” character. the output in jtl file will double the \" character
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58606
Ejay <g7...@126.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|In Class SampleResult,using |In Class SampleResult,using
|the method of |the method of
|setSampleLabel( String s ) |setSampleLabel( String
|, FYI:s contain \” |param ) , FYI: param
|character. the output in |contain \” character. the
|jtl file will double the \" |output in jtl file will
|character |double the \" character
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58606] In Class SampleResult,using the method of setSampleLabel( String param ) , FYI: param contain \” character. the output in jtl file will double the \" character
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58606
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Sebb <se...@apache.org> ---
I just tried, and I get:
1447414880174,359,"test""test",,,Thread Group 1-1,text,true,0,1,1,0
Note that the label is enclosed in double-quotes.
The standard for CSV requires that embedded double-quotes are doubled-up.
Try reloading the JTL file in a Listener (or a spreadsheet) and you will see
that only a single " is displayed.
If your app is reading the JTL file differently, then it is non-standard.
This is not a JMeter bug
--
You are receiving this mail because:
You are the assignee for the bug.