Debug: getting a test message from an output queue

You can get a message from an output queue to test a message flow that you are debugging.

Before you begin

Completed the following tasks:

About this task

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 and retrieving it from an MQOutput node.

You can use the command line interfaces or IBM MQ Explorer to get a message from an output queue.

You can also use the Test Client as a repeatable alternative.
Note: The Test Client is not enabled by default. To use the Test Client, you must enable this facility in the Test Client preferences; see Test Client preferences.
To use the Test Client, complete the following steps:

Procedure

  1. Switch to the Integration Development perspective.
  2. Open your message flow in the Message Flow editor.
  3. Right-click the input node of the message flow and click Test.
    The message flow is deployed and the Test Client editor opens and displays the Events window.
  4. On the toolbar at the upper right of the Test Client editor, under Message Flow Test Events, click the Dequeue icon Dequeue icon.
  5. Under Detailed Properties, enter the name of the queue manager and output node queue.
  6. Click Get Message to read a message from the queue.
  7. Optional: If you want to save the Test Client file, complete the following steps:
    1. Click File > Save and select the project where you want to save the file.
    2. Enter a name for the file and click Finish.
    The Test Client file is saved in the Flow Tests folder in the project.

Results

When a message is available on an output queue, you can see it in the Test Client editor.