Showing posts with label SoapUI. Show all posts
Showing posts with label SoapUI. Show all posts

Wednesday, 22 February 2017

How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ


I discussed on my previous post about how to configure HermesJMS in SOAP UI for IBM MQ.

Today, I am going to discuss about how we will use JMS Session which we created during configuration of hermes jms for sending/receiving messages to/from Queue from SOAP UI.

Prerequisite
  • Destinations/Queues must be created on IBM MQ and Channels are must be started if any.
  • SOAP UI must be configure with Hermes JMS. 
  • JMS session and Destinations/Queues must be defined.

In previous post, we created JMS Session and destinations as below.

How to use hermes jms in soapui for IBM MQ


Use of Hermes JMS in SOAP UI

HermesJMS is an extensible console that helps Tester to create test cases making it easy to browse or search queues and topics, copy messages around and delete them.

Step 1: Create New SOAP Project using any dummy WSDL. You can use WSDL from SoapUI tutorials.

How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ

Once, you will click OK button new SOAP Project will look like below.

How to use hermes jms in soapui for IBM MQ


Step 2: Create New Test Suite by right click on SOAP UI Project created in Step1.

How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ



How to use hermes jms in soapui for IBM MQ

Step 3: Create New Test Case by right click on Test Suite created in Step2.


How to use hermes jms in soapui for IBM MQ


How to use hermes jms in soapui for IBM MQ

Step 4: Create test steps (Type: Test Request) as necessary based on project requirement.

 For example, I will create create three Test Request steps in SOAP UI test case. One Test Request step for Receive Destination Queue to consume message and one Test Request to send request to destination queue and One Test Request step for send and receive messages.


How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ

Note: Make sure “Add SOAP Response Assertion” check box to be unchecked, otherwise test suite always fails.

Similarly, create HermesTestStep2  and HermesTestStep3. 


How to use hermes jms in soapui for IBM MQ


Step 5: Create JMS Endpoints for Receive and send destinations.


How to use hermes jms in soapui for IBM MQ

How to use hermes jms in soapui for IBM MQ

Step 6: Map JMS Endpoints for Receive and send destinations.


  • send only jms://LocalMQ::queue_Q1
  • receive only jms://LocalMQ::-::queue_Q2
  • send and receive jms://LocalMQ::queue_Q1::queue_Q2
How to use hermes jms in soapui for IBM MQ


For Dynamic mock response, you can write Groovy script and also can set JMS header attribute like ReplyTo, Expiration time, time-out etc.


Related Topic:





Wednesday, 15 February 2017

How to install HermesJMS with SoapUI

How to install HermesJMS with SoapUI


HermesJMS is a handy open source project hosted by Sourceforge,that can be used to monitor, inspect, and interact with JMS Queues, Topics, and Messages.

HermesJMS is an extensible console that helps you interact with JMS providers making it easy to browse or search queues and topics, copy messages around and delete them. It fully integrates with JNDI letting you discover administered objects stored, create JMS sessions from the connection factories and use any destinations found. Many providers include a plugin that uses the native API to do non-JMS things like getting queue depths (and other statistics) or finding queue and topic names.

It works with many of the popular JMS providers such as Active MQ, Arjuna MQ, Tibco EMS, Fiorano MQ, JBoss MQ, JORAM, OpenJMS, Oracle, Pramati, SAP, SeeBeyond ICAN, SeeBeyond JCAPS, Sonic MQ, WebLogic JMS, WebMethods, and WebSphere MQ

Download open Source Latest version of SOAP UI with HermesJMS.

Step 1: Start it by just double-clicking on it. The installer will start immediately.

How to install HermesJMS with SoapUI

Step 2: You'll see the starting screen.

How to install HermesJMS with SoapUI

Step 3: Just click Next to continue. You'll be asked to accept our license agreement.

How to install HermesJMS with SoapUI

Step 4: After accepting and clicking Next, you'll be able to select the destination folder, which by default is set to C:\Program Files\SmartBear\SoapUI-5.2.0, but can be changed.

How to install HermesJMS with SoapUI

Step 5: Next step gives you the opportunity to include, as additional components, soapUI source files and Hermes installation. You must check HermesJms option.

How to install HermesJMS with SoapUI

Step 6: In case you've chosen to install Hermes, you'll get the Hermes license agreement.

How to install HermesJMS with SoapUI

Step 7:  Then, specify the path to the directory where the tutorials will be installed.


How to install HermesJMS with SoapUI

Step 8: Then, you'll be able to select the Start Menu folder where you want the soapUI shortcut to be added.

How to install HermesJMS with SoapUI

Step 9: and whether you would like desktop icon added.

How to install HermesJMS with SoapUI

Step 10: Finally, by clicking Next, the installation starts.After couple of minutes at most, the installation should be finished and you should see the next screen.

How to install HermesJMS with SoapUI




Related Topic:

How to configure HermesJMS in SOAP UI for IBM MQ