Forum Discussion
I am sending a trying to read from a JMS queue ( Apache ActiveMQ), but I have invalid username/password combo. The broker responds with a JMSSecurityExceptions object, that is processed by the SoapUI source code and I get the message body form the exception object in the JMS Status assertion, but the assertion fails. I want to create a script assertion, that retrieves the object and parses the message from the object, and if it contains something like "user/pass invalid", the assertion should pass.
- AlexDa9 years agoOccasional Contributor
Yes, it is a SOAP type request
- nmrao9 years agoChampion Level 3Ok.
Just going thru your previous messages once again.
For now, disable JMS Status assertion, and do script assertion. Does it sound good?- AlexDa9 years agoOccasional Contributor
The JMS Status assertion is deactivated. A script assertion was my intention, but I have no idea how to catch the JMSSecurity exception object that is thrown by the AMQ server. If you take a look at the SoapUI source code, you will see that the JMS Status assertion treats the exception (name is jmse), by printing the message inside the exception object to the log. I would want to somehow take that message and to perform some kind of parsing on it (like if the message is: "Username/password used is not valid" than the custom assertion should pass)
Related Content
- 2 months ago
- 3 years ago
- 5 years ago
Recent Discussions
- 17 hours ago