In a Mule project, Flow-1 contains a flow-ref to Flow-2 depends on data from Flow-1 to execute successfully.
Which action ensures the test suites and test cases written for Flow-1 and Flow-2 will execute successfully?
- Chain together the test suites and test cases for Flow-1 and Flow-2
- Use `'Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent
- Use `'Before Test Case'' To collect data from Flow-1 test cases before running Flow-2 test cases
- Use `After Test Case' to produce the data needed from Flow-1 test cases to pass to Flow-2 test cases
Answer(s): B
Explanation:
To ensure the test suites and test cases written for Flow-1 and Flow-2 will execute successfully, the developer should use a Set Event processor to pass the input that is needed by Flow-2, and keep the test cases for Flow-1 and Flow-2 independent. This way, the developer can isolate the testing of each flow and avoid coupling them together.
Reference:
https://docs.mulesoft.com/munit/2.3/munit-test- flow
Reveal Solution Next Question