After the Boomi integration process is developed, while testing multiple sub-process calls if any changes are required or if testing is required only for a particular sub-component, Message Shape can meet the requirements. There is no need for testing end-to-end flow if changes need to be tested and verified for a particular process or sub-flows to validate the changes.
With the use of Message shape, the following can be achieved
- Required data can be passed to the next shape
- Modified data can be supplied on the fly
- Testing from Source connector data might take more time than can be saved
- Ability to test multiple flows using different test data supplied to each message shape in the flow
To test the process flow or changes in the Boomi platform, the content will be added in the message field of the Message Shape and it will be connected to the next shape.
Below are different scenarios with different message types to test with Message Shape
1. JSON Message:
For testing with JSON messages, use single quotes.
“FirstName” : “Russell”,
“LastName” : “Crowe”
2. XML Message:
Use original XML message that contains &, < and > with double quotes (“) in the top line of XML directly in the Message shape. The Message shape will not take single quotes in XML.
<?xml version=”1.0″ encoding=”UTF-8″?>
<title>delectus aut autem</title>
3. EDI or Flat file Message:
Copy actual EDI or Flat file message without any modifications into Message shape. If EDI data contains single quotes, use an extra single quote to escape it.
(a) X12 message (truncated)
(b)EDIFACT message (truncated)
4. Database Message:
When testing with DB message, component ID (after DBSTART and DBEND) needs to be replaced with new DB profile component ID need to be replaced if the profiles are copied during testing.
Eg: DBSTART|828ac9d7-8334-44e0-8739-4139cf86f2e5|2|@|BEGIN|2|@|OUT_START|3|@|1259|^|20201209 182925.764|^|Alex Jr|^|1111111|#||#|OUT_END|3|@|END|2|@|DBEND|828ac9d7-8334-44e0-8739-4139cf86f2e5|2|@|
In the above example, the bold text needs to be replaced with the component ID of the new DB profile