IBM Integration Bus, Version 9.0.0.8 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Debug: putting a test message on an input queue

You can put a message on an input queue to test a message flow that you are debugging.

Before you start

Complete the steps described in Attaching the flow debugger to an integration server for debugging.

If your message flow includes MQInput and MQOutput nodes, you can test the flow by putting a message on the input queue of your first MQInput node.

You can use the command line interfaces or WebSphere® MQ Explorer to put a message to a queue.

You can also use the Test Client as a repeatable alternative. To use the Test Client, complete the steps described in the following sections:

If the message is processed by the message flow and is put on an output queue, you can retrieve it from that queue. See: Debug: getting a test message from an output queue.

Using enqueue in the Test Client

To configure an enqueue event in the Test Client so that you can use it to send a test message:

  1. Switch to the Integration Development perspective.
  2. Click File > New > Other. The New dialog opens.
  3. Expand Integration Bus - Application Development, select Unit Test Client, and click Next. The wizard opens and displays its first panel.
  4. Select the project in which you want to create the Test Client file.
  5. Enter a name for the Test Client file and click Finish. The Test Client editor opens.
  6. On the toolbar at the upper right of the Test Client editor, under Message Flow Test Events, click the Put a message onto a queue icon Put a message onto a queue.
  7. Under Detailed Properties, enter the names of the queue manager and the queue for the input node for this flow. Queue manager names are case-sensitive; check that you enter the name correctly.

    If you are putting a message onto an input queue that is on a remote computer, ensure that the queue manager of the associated broker has a server-connection channel called SYSTEM.BKR.CONFIG.

  8. If you are putting a message onto a remote queue, enter values to identify the host and port of the computer that is hosting the queue.
  9. Click File > Save to save the file.

Adding data to your message

If you want to add just a small amount of test data in your test message, type the data into the Source section of the Message pane:

  1. Open your Test Client file.
  2. Type your test data directly into the Source section of the Message pane.
  3. Put the test message by clicking Send Message.

Optional: Using a file of sample data

If you want your test message to contain a larger quantity of sample data (for example some structured XML), you can import a file containing that data into the Test Client:

  1. In the Events tab of your Test Client file, click Import Source.
  2. Select the file you want to use as the content for the test message, and click Open. The contents of the selected file is added to the Source pane.
  3. Click File > Save when you have finished.
  4. Put the test message by clicking the Send Message button.

ag16710_.htm | Last updated Friday, 21 July 2017