Soapui, Groovy problem with JSM connection
Hi! I have a Groovy script in SoapUI Open Source (5.5.4) & Hermes 1.14 which keeps sending JMS message to an IBM MQ queue. The relevant section of the code is the following (code is simplified just for the sake of readability): while (testRunner.testCase.testSuite.project.getPropertyValue('STOP'+n) != '1') { requestHolder.setNodeValue("//soapenv:Envelope/soapenv:Body/Payment/creditor/AccountNumber",accountNumber); testRunner.runTestStepByName('sendPayment' + n); } Multiple threads can be started with dedicated test steps (for example: sendPayment1 for Thread-1, sendPayment2 for Thread-2) Based on the logic above we send continously transaction to a payment hub. So far we had no problems using this method, but after moving to the production environment I keep getting MQ connection problems. It seems we're having trouble connecting to the queue manager, and according to the logs it's network issue - although our network experts said there was no problem with the network and all server (including the one that hosts the QM) were available in this time period. Did anybody experience this phenomenon? My biggest problem is not the outage anyway, but that the script stops working and for a more-days-long test it's a showstopper. Is there a way to catch this outage in SoapUI Groovy script? Try-catch-finally didn't workd - I think the exception was handled by another built-in class. All I see - unfortunately hours later - a log entry and a broken sending process in the database. Thanks in advance for sharing your thought with me on this issue! BR, Csaba ps.: And sorry for the foreign language in the log attached, I think error codes make understandable the excerpt. ps2: At the same time the proble occurs a ....FAILED.txt file appears in the log directory with the following content: Status: FAILED Time Taken: 10133 Size: 0 Timestamp: Fri Nov 29 14:07:59 CET 2019 TestStep: initiatePaymentOTM1 ----------------- Messages ------------------------------ [SOAP Response] Response is missing or empty ----------------- Properties ------------------------------ Endpoint: jms://HERMSESSION::queue_SOAPUI_WRAPPER_IN::queue_TEST__REPLY Username: Encoding: UTF-8 Password: ---------------- Request --------------------------- Request Headers: ---------------- Response -------------------------- Response Headers:596Views0likes0CommentsHow to set a JMS Request to Payload Empty?
Hi Guys, I'm trying to build a test suite that send an JMS message with payload empty ( like JMS Message Type= Mesage or Simple). I can connect correctly and send JMS messages that other types like byte, map and text. Can you help-me how to send a JMS Message with no body?Solved1.4KViews0likes1CommentHow to create JMS Mock in SOAP UI version 5.2.1?
Hi, I am using SOAP UI (free) 5.2.1 edition and I want to create a mock service which reads from a JMS queue and sends some xml message back. There are some posts online about this but most are about older versions of SOAP UI. Can someone help me with this? (this has some groovy script which just checks in the queue but still no use to me https://www.soapui.org/jms/working-with-jms-messages.html) Christiaan https://community.smartbear.com/t5/SoapUI-Open-Source/Mock-services-over-JMS/m-p/11425#U11425873Views0likes0CommentsHow do I retrieve a JMS Security exception object in SoapUI?
How do I retrieve a JMS Security exception object in SoapUI, to extract and parse the message in groovy script? The default JMS Status assertion is not suitable, as I would like to test a negative scenario, such as having the wrong username/password when reading/writing on a queue. I want the custom assertion to pass, by parsing the message from the exception object and validating it.3.3KViews0likes10CommentsJMS messages with no response
Hello forum members, I've got another question, now concerning JMS in SoapUI with the Hermes JMS integration. I want to send a JMS request to the server, which actually works well, the server reseaves the message, but it is a fire and forget message, so the server sends no response for it. When I am now using the Load Test the load test always stucks at this step because it is waiting for a response which it will never get.. How can I tell SoapUI that it should not wait for a response for that request? Regards.1.8KViews0likes4Comments