Discarded frames are added to jtl file and xml schema is broken
After adding a text frame filter, the discarded frames are still added to the result file (XML format) and breaks the xml.
Execution failed: ParseError at [row,col]:[49,193] Message: Element type "sample" must be followed by either attribute specifications, ">" or "/>".
Example of message <sample t="139" it="0" lt="0" ct="0" ts="1512032290444" s="true" lb="WebSocket Single Read Sampler" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="1630" sby="0" ng="1" na="1"> <sample t="134" it="0" lt="0" ct="0" ts="1512032290444" s="true" lb="Discarded text frame (by filter 'Discard connections filter')" rc="" rm="Received Text frame with text '{"counter":1,"timestamp":"2017-11-30T08:58:10.574Z","eventType":0,"entityType":9,"body":{}'" tn="Thread Group 1-1" dt="" by="1181" sby="0" ng="1" na="1"> <responseData class="java.lang.String">Non-TEXT response data, cannot record: ()</responseData> </sample> <responseData class="java.lang.String">{"counter":1,"timestamp":"2017-11-30T08:58:10.581Z","eventType":1,"entityType":6,"body":{}}</responseData> </sample>
Comments (6)
-
repo owner -
repo owner - changed status to open
-
repo owner Which version of JMeter are you using and which version of the plugin?
-
repo owner I've not been able to reproduce this bug, so please provide me with versions of JMeter and plugin that you used.
-
repo owner When i put such a JSON string in a sampler and let JMeter save to .jtl file, i get jtl content like this
<sample t="2" it="0" lt="0" ct="0" ts="1514055132072" s="true" lb="Discarded text frame (by filter 'group scoped Text Frame Filter 2')" rc="" rm="Received Text frame with text '{"counter":1,"timestamp":"2017-11-30T08:58:10.574Z","eventType":0,"entityType":9,"body":{}'" tn="filter multiple frames 2-1" dt="" de="UTF-8" by="92" sby="0" sc="1" ec="0" ng="1" na="1" hn="pappled3.local">
which is correct XML as far as i know.
-
repo owner - changed status to invalid
- Log in to comment
That the filtered frames are present in the result is by design. It might help you to find out what's going on or going wrong w.r.t. communication between client and server. But of course, it should result in valid xml, i'll fix that.