Forum Discussion

larryx's avatar
larryx
Frequent Contributor
11 years ago

[Resolved]Test Websphere MQ with SoapUI-Groovy

I need to do jms load test on websphere MQ 6.0 with Soapui-groovy. Basically sending text msgs to sending queue (destination queue in MQ queue manager) and need to count/measure msgs process time from the receiving queue. App fast consumes msgs from sending queue and processes them to the receiving queue (note: msgs just quickly pass through here and move into some file directory). I know Hermes (1.14) can send msgs this way but I need soapui to do load test. So I guess I need to implement sending msgs and verify msgs passing in the receving queue from groovy script. I did similar groovy code for ActiveMQ 5.2 with following this link http://soapui.org/JMS/getting-started.html. Now my challenge is sample groovy code to implement this task. Please Help Me!
Thanks,
Larry
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    You can do a load test in SoapUI Pro after you have configured your request to use a JMS endpoint.
    http://www.soapui.org/Getting-Started/load-testing.html

    We do have JMS assertions to verify JMS responses.
    http://www.soapui.org/JMS/validating-jms-responses.html

    As far as verifying messages are in the sending queue using a custom Groovy script, that is outside of scope of support for SoapUI Pro. That may require using WebSphere MQ API depending on what you are trying to do. There maybe some folks in our community that know, or the WebSphere MQ forum.



    Regards,
    Marcus
    SmartBear Support
  • larryx's avatar
    larryx
    Frequent Contributor
    Hi Marcus,
    Thanks for the JMS assertions link info.
    I may not explain my question very well. so I try in different way.
    I use groovy plug in bcoz need to send text msg (soapui send xml msg) to the queue in WebsphereMQ.
    Soapui Pro website( http://www.soapui.org/JMS/working-with-jms-messages.html ) has very good Groovy script(API) to send msgs to one queue and browse queue from it. This is implemented by Hermes for 'ActiveMQ'.
    I will do the same thing except for 'IBM WebsphereMQ'. The only thing I can see to be modified in this groovy script is JMSEndpoint info. My question is: whatelse I need to do to make this groovy code work for sending/browsing msg to/from the queue in 'IBM WebsphereMQ'?
    Note: I've already created new WMQ session in Hermes. The major reason I try this approach bcoz I see this groovy example in soapui website. I believe this is the least effort I can complete my task. I have no problem to conf/run load test component in Soapui. Please help!
    Thanks,
    Larry
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    This is a bit out of scope for our support offering, but if you provide the Groovy script you have come up with so far and point out what, in the script, you are having problems with we could have a look and see if we can resolve your issues.

    --
    Regards

    Erik
    SmartBear Sweden
  • larryx's avatar
    larryx
    Frequent Contributor
    Hi Erick,
    My code works now. I think it was solved by re-install Hermes (standalone version).
    Thanks,
    Larry