本文介绍了是否可以通过mapmessage在jmeter中的JMS消息中发送字节数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人能够通过mapmessage在jmeter中发送字节数组而输出不是字符串

I would like to know if someone has been able to send a byte array in the jmeter by mapmessage without the output being a string

推荐答案

根据 JMS发布者文档可能:

  • 将包含您的对象及其依赖项的JAR放在jmeter_home/lib/文件夹中

  • Put the JAR that contains your object and its dependencies in jmeter_home/lib/ folder

使用XStream将对象序列化为XML

Serialize your object as XML using XStream

要么将结果放入带有.txt或.obj后缀的文件中,要么直接将XML内容放入文本区域"中

Either put result in a file suffixed with .txt or .obj or put XML content directly in Text Area

请注意,如果消息在文件中,则使用文本区域时将不会替换属性.

Note that if message is in a file, replacement of properties will not occur while it will if you use Text Area.

如果您不是要查找的内容,则始终可以直接调用 BytesMessage 类函数,即 JSR223测试元素的rel ="nofollow noreferrer"> writeBytes() 使用时髦的语言

If it is not something you're looking for - you can always directly call BytesMessage class functions, i.e. writeBytes() from JSR223 Test Elements using Groovy language

这篇关于是否可以通过mapmessage在jmeter中的JMS消息中发送字节数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:38