Response message containing "false" is considered a failure when parsed by ResultScanner
See original GitHub issueI have Java Sampler tests which set the SampleResult response message to a server’s text/xml response. This xml contains the string “false” within the body, and is subsequently included when the csv result file is generated, in the responseMessage column.
On parsing the file, it appears that ResultScanner is counting the appearance of “false” in the responseMessage as a test failure, while using failurePattern:'\bfalse\b'
.
If this is infact an issue, I’d like to submit a PR to resolve this. Would you guys have a preference on a solution? My immediate thought is to deserialize the csv rows to collection of Java objects, then count where success == false
. Alternatively, the pattern could be extended to include \b,false,\b
but there is still a possibility where some messageResponse may contain the substring ",false,"
.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@pmouawad It will be my first time contributing here but i’d certainly like to try! I will go with your suggestion and looking through your example at the moment.
Hello, Thanks for proposal, I confirm issue, which only affects CSV format. I think the most stable way to do it is:
This may help: