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 begin
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.
You can use the command line interfaces or WebSphere® MQ Explorer to put a message to a queue.
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
About this task
To configure an enqueue event in the Test Client so that you can use it to send a test message:
Procedure
Adding data to your message
About this task
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:
Procedure
- 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
About this task
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:
Procedure
- 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.