Forum Discussion
omrzljak
15 years agoOccasional Contributor
Hi Nebojsa,
I use beta 2 and I can use message selector but...
I have to specify in message selector something like “JMSCorrelationID =${=context.testCase.testSteps["…"].testRequest.JMSMessageID}
Response message has it’s own JMSMessageID but it contians in JMSCorrelationID the JMSMessageID of request message. So if we work with multiple threads any thread should do something like this (pseudo code):
make message
// message is at this point without JMSMessageID
send message to request queue
// after send message object gets JMSMessageID
obtain id from the message
make selector “JMSMessageID= + ‘requestMessage.JMSMessageID’
receive response using selector.
So in Soapui I must specify message selector , but I have to know message id of request. Messageid of request is know after sending request message to request queue. Property expansion can’t help here (this is my question) because property is expanded before teststep execution (so before request message is sent).
I use beta 2 and I can use message selector but...
I have to specify in message selector something like “JMSCorrelationID =${=context.testCase.testSteps["…"].testRequest.JMSMessageID}
Response message has it’s own JMSMessageID but it contians in JMSCorrelationID the JMSMessageID of request message. So if we work with multiple threads any thread should do something like this (pseudo code):
make message
// message is at this point without JMSMessageID
send message to request queue
// after send message object gets JMSMessageID
obtain id from the message
make selector “JMSMessageID= + ‘requestMessage.JMSMessageID’
receive response using selector.
So in Soapui I must specify message selector , but I have to know message id of request. Messageid of request is know after sending request message to request queue. Property expansion can’t help here (this is my question) because property is expanded before teststep execution (so before request message is sent).
Related Content
- 7 years ago
- 8 years ago
- 7 years ago
- 9 years ago
Recent Discussions
- 18 hours ago