Interview Questions

How to access JMS headers ?

SoapUI FAQ


(Continued from previous question...)

How to access JMS headers ?

The example below sets the JMS header JMSCorrelationID to "foo4711" for myTestStep.

1.def myTestStep = testRunner.testCase.getTestStepByName("Some JMS TestStep")
2.def msgID = "foo4711"
3.
4.myTestStep.testRequest.jMSHeaderConfig.messageSelector = "JMSCorrelationID = '${msgID}'"

(Continued on next question...)

Other Interview Questions