AnsweredAssumed Answered

How to extract MQ properties like messageId , replyToQueuename from response message which is the output of MQ Subscribe step

Question asked by lakshmimadhavi.tatapudi on May 5, 2015
Latest reply on May 13, 2015 by lakshmimadhavi.tatapudi

How to extract MQ properties like messageId , replyToQueuename from response message which is the output of MQ Subscribe step

I am using LISA7.5

I have created a testcase with the below 2 steps :

1. MQ Subscriber Step

2. Java script step which has below code

 

import java.lang.*;
import java.io.*;

message = testExec.getStateObject("lisa_MQ_subscribe_rsp");

testExec.setStateValue("messageId",message.messageId);
testExec.setStateValue("queueName",message.replyToQueueName);
testExec.setStateValue("queueMgr",message.replyToQmgrName);

 

messageId, queueName and queueMgr are defined in proj.config file of LISA.

 

The above java script is not working.

Please let me know if any other line of code also should be added?

Outcomes