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 execution group 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:
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:
- Open your Test Client file.
- Type your test data directly into the Source section of the Message pane.
- 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:
- In the Events tab of your Test Client file, click Import Source.
- 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.
- Click when you have finished.
- Put the test message by clicking the Send Message button.