Add possibility to save ByteMessage content in the sample result.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**mchassagneux** ([Bug 54434](https://bz.apache.org/bugzilla//show_bug.cgi?id=54434&redirect=false)):
Since https://github.com/apache/jmeter/issues/2991, JMeter is able to handle ByteMessage for JMS sample.
But when I read a message in this format, the content is not save, I can just read this message :
"XX bytes received in BytesMessage"
So, could you please add in the sample result object, the real content of the ByteMessage like this :
// copy data into a byte[] array
int dataSize = (int) msg.getBodyLength();
byte[] array = new byte[dataSize];
msg.readBytes(array , dataSize);
[...]
result.setResponseData( array );
The goal of this, is to send later the message (or save into a file )
Thanks !
OS: All
Contributor guide
Assessment
This issue has not been assessed yet.