apache / apache/jmeter

Add possibility to save ByteMessage content in the sample result.

Open
#3,034 6 comments 0 reactions 0 assignees View on GitHub
enhancement os: All P2
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.