无法使用 Citrus Frame work xml 测试用例从 WEB-SPHERE MQ 队列接收消息
Unable to receive message from WEB-SPHERE MQ queue by using Citrus Frame work xml test cases
我正在尝试通过在 XML-test-cases 中定义操作,使用 citrus 框架从 web-sphere mq 队列接收消息。如下图
<receive endpoint="jms:Queue_Name?timeout=1000">
<selector>
<element name="correlationId" value="303132333435363738393130313131323133313431353136"
</selecotr>
<message>
</message>
</receive>
我尝试用十六进制值和 ASCII 值提及相关 ID,但我无法收到我收到的消息 ACTION TIME OUT EXCEPTION
。我交叉检查了 WEB-SPHERE MQ 中存在的关联 ID 和 xml 中提到的关联 ID。但是没有选择器标签,我能够根据时间获取首先插入队列的消息。
您必须像这样提供相关 ID 值,它对您有用
<receive endpoint="jms:Queue_Name?timeout=1000">
<selector>
<element name="correlationId" value="ID:${varible consisting og hexa value}"
</selecotr>
<message>
</message>
</receive>
我正在尝试通过在 XML-test-cases 中定义操作,使用 citrus 框架从 web-sphere mq 队列接收消息。如下图
<receive endpoint="jms:Queue_Name?timeout=1000">
<selector>
<element name="correlationId" value="303132333435363738393130313131323133313431353136"
</selecotr>
<message>
</message>
</receive>
我尝试用十六进制值和 ASCII 值提及相关 ID,但我无法收到我收到的消息 ACTION TIME OUT EXCEPTION
。我交叉检查了 WEB-SPHERE MQ 中存在的关联 ID 和 xml 中提到的关联 ID。但是没有选择器标签,我能够根据时间获取首先插入队列的消息。
您必须像这样提供相关 ID 值,它对您有用
<receive endpoint="jms:Queue_Name?timeout=1000">
<selector>
<element name="correlationId" value="ID:${varible consisting og hexa value}"
</selecotr>
<message>
</message>
</receive>