To use the Test Client, you must create or edit
a test message to send to your message flow.
A number of editors are available in the
Test Client for creating a test message.
The most appropriate editor to use depends upon the type of test message
you want to send to your message flow.
If the input node that you want to send
the message to for the test expects an XML message, and the message
flow is associated with a message definition, the XML Structure editor
is available. If you want to send an XML message, but do not have
a message definition defined, or create a test message that is not
in XML format, you can use the Source editor.
Alternatively you can import an existing test message into the source
editor, or take the generated source from the XML Structure editor
and paste it into the source editor.Select from the following
options to create and edit a test message:
- Using the XML Structure editor:
- In the Events tab
of the Test Client, select XML
Structure from the Viewer list.
- Edit the entries in the Value column
for each field to change the content of the test message.
- Right-click the fields in the XML
Structure editor to see additional options for defining
the content of the test message. These options include
adding message parts and elements, for example if your message has
repeating fields.
- You can save your file with the updated test message
by clicking .
- To view and copy the generated test message, click Show
Generated Source.
- Using the Source editor:
- In the Events tab of the Test Client, select Source from
the Viewer list.
- Enter the text content for your test message in this
editor, or alternatively copy content into the editor from another
source by right-clicking in the editor and selecting Paste.
- You can save your file with the updated test message
by clicking .
- Importing an existing test message
into a source editor:
- In the Events tab of the Test Client, select Source from
the Viewer list.
- Click Import Source. You
can then locate your existing test message from your file system.
- Click Open to import the selected
file into the Test Client.
- You can save your file with the updated test message
by clicking .
Ensure that you have selected the correct input node to send
the test message to in your message flow. Click
Send Message to
send your test message to the selected input node. If this is the
first time you have sent a message using this
Test Client file, the
Deployment
Location wizard opens. See
Selecting the deployment location for the message flow.