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/03/12 19:08:40 UTC
[Bug 57693] New: ResponseData stores a downloaded file as a String
instead of CDATA
https://bz.apache.org/bugzilla/show_bug.cgi?id=57693
Bug ID: 57693
Summary: ResponseData stores a downloaded file as a String
instead of CDATA
Product: JMeter
Version: 2.12
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: tigeryell99@yahoo.com
If a response to an Http GET contains a zip file, the ResponseData stores it as
a String instead of as CDATA. This causes an invalid character error when
trying to parse the XML jtl file.
Running the Testcase via the commandline and creating XML jtl files for each
Testcase.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57693] ResponseData stores a downloaded file as a String
instead of CDATA
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57693
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |p.mouawad@ubik-ingenierie.c
| |om
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Could you provide some test case ?
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57693] ResponseData stores a downloaded file as a String
instead of CDATA
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57693
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hi,
This is the format used by XStream.
If you want the XML responsed , you can use :
http://jmeter.apache.org/usermanual/component_reference.html#Save_Responses_to_a_file
It will save the response as XML.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57693] ResponseData stores a downloaded file as a String
instead of CDATA
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57693
tigeryell99@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57693] ResponseData stores a downloaded file as a String
instead of CDATA
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57693
--- Comment #2 from tigeryell99@yahoo.com ---
Created attachment 32606
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32606&action=edit
JMeter script
Example JMeter script that gets a zip file from a server.
The real problem is not in the script, the issue is when running the script via
the Command line. The jtl that it generates is not valid xml and therefore XML
parsing tools cannot read it.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57693] ResponseData stores a downloaded file as a String
instead of CDATA
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57693
--- Comment #3 from tigeryell99@yahoo.com ---
If you run the Testcase I uploaded via the command line like so:
java -jar "/<JMETERPATH>/apache-jmeter-2.12/bin/ApacheJMeter.jar" -n --propfile
"/<PROPERTIES_PATH>/Jmeter.properties" --jmeterproperty host=10.47.18.133 -l
"/<OUTPUT_PATH>/GetBillingData.jtl" -j "/<OUTPUT_PATH>/GetBillingData.log" -t
"/<JMX_PATH>/GetBillingData.jmx"
Then the GetBillingData.JTL file it spits out is not valid. The ResponseData
looks something like this: <responseData
class="java.lang.String">PK�&# .... </responseData>
Even though the httpSample has the header "Content-Type: application/zip".
******** Settings in the Properties file******
jmeter.save.saveservice.output_format=xml
# timestamp_format is not currently supported for xml output
#jmeter.save.saveservice.timestamp_format=HH:mm:ss
# ****true when field should be saved; false otherwise
# assertion_results_failure_message only affects CSV output
jmeter.save.saveservice.assertion_results_failure_message=true
#
jmeter.save.saveservice.data_type=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true
# response_data is not currently supported for CSV output
jmeter.save.saveservice.response_data=true
# Save ResponseData for failed samples
jmeter.save.saveservice.response_data.on_error=true
jmeter.save.saveservice.response_message=true
jmeter.save.saveservice.successful=true
jmeter.save.saveservice.thread_name=true
jmeter.save.saveservice.time=true
jmeter.save.saveservice.subresults=true
jmeter.save.saveservice.assertions=true
#jmeter.save.saveservice.latency=true
jmeter.save.saveservice.samplerData=true
jmeter.save.saveservice.responseHeaders=true
jmeter.save.saveservice.requestHeaders=true
#jmeter.save.saveservice.encoding=false
#jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.url=true
jmeter.save.saveservice.filename=true
jmeter.save.saveservice.hostname=true
#jmeter.save.saveservice.thread_counts=false
#jmeter.save.saveservice.sample_count=false
#jmeter.save.saveservice.idle_time=false
# Put the start time stamp in logs instead of the end
sampleresult.timestamp.start=false
--
You are receiving this mail because:
You are the assignee for the bug.