The message flow between two ports (source port and target port)  present in an event process that is running can be tested using the context menu option as below..

To test message flow, right-click in the orchestration editor (outside the microservices and ports) of the running event process, and click the Test Message option; Test Message dialog box with the respective options to test pops-up. The  Test Message dialog box allows selecting any source port, while the target port selection allows only "output ports" and "topics". Refer the next section to know how to test the message flow between ports.


Figure 1: Right-click context menu showing the Test Message option on a running event process

How to execute the test

  1. Select the following options from the drop-down Source Component


    Figure 2: Options present in the Test Message dialog box

    PropertyDescription
    Source ComponentThe drop-down will have the microservices present in the flow; in the given example, the Feeder and Display components. Select the one from the one from which the message starts flowing.

    Source PortAfter selecting the Source Component, the ports pertaining to it appears; select the one as required.
    Target ComponentSelect the Target Component.
    Target Port

    The ports pertaining to the Target Component appears; select the one as required.

     

  2. Click the Start Testing button; the Send Message button gets active.


    Figure 3: Stop Testing and Send Message buttons getting activated after clicking Start Testing button 

  3. Click Send Message after editing the message, header or attachment; the message present in the editor on the left side appears on the right side with the properties as set on the source.


    Figure 4: Clicking Send Message button to test message flow

    Icon
    • Clicking the Stop Testing button stops testing, disabling the Send Message and Start Testing buttons.
    • If the peer server is stopped while testing, an error message pops-up.

Adaptavist ThemeBuilder EngineAtlassian Confluence