Forum Discussion

dougmc's avatar
dougmc
New Contributor
8 years ago
Solved

Dynamic JMS MessageSelector

I am using ReadyAPI 1.9.0 with SOAPUI NG PRO.

 

I have a JMS Test Step where I dynamically set the JMSCorrelationID as ${=java.util.UUID.randomUUID()}.

 

How can I set the MessageSelector so that it looks for JMSCorrelationID that was sent?

 

Since I am using a random value, I cannot hard-code the MessageSelector.

 

thanks!

Doug

  • Instead you may use test case level custom property and use property expansion.

    Generate UUID, store it at custom property say UUID and use ${#TestCase#UUID} while sending and as selector too.

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Instead you may use test case level custom property and use property expansion.

    Generate UUID, store it at custom property say UUID and use ${#TestCase#UUID} while sending and as selector too.
    • dougmc's avatar
      dougmc
      New Contributor

      thanks!!  I got it working.

      I added property and assigned it a random UUID.

       

      In the message selector, I inserted:

      JMSCorrelationID='${#[TestSuite#TestCase]#correlationID}'