How do I test a map

In this video, the focus is on testing a map with Logic App Standard. The speaker begins by explaining how to set up a map in VS Code and the challenge of testing artifacts locally versus in a deployed Logic App on Azure. The speaker emphasizes the importance of testing maps in both scenarios to ensure consistency.

Considerations:
When running a map in Logic App, the speaker suggests running an extensive set of tests locally before deploying to Azure. The speaker demonstrates how to implement a map in a Logic App workflow and test it using the Logic App test framework. By comparing the input and expected output, the speaker shows how to ensure the map functions correctly.

Implementation:
The speaker walks through the process of setting up a Logic App workflow to execute a map and compares the output using a helper class for XML comparison. The speaker highlights the simplicity of running maps in Logic App and how it ensures the map will work in other workflows.

Key Takeaways:
– Test maps locally and in deployed Logic App to ensure consistency.
– Use the Logic App test framework to compare input and output of maps.
– Consider different options for running maps, such as unit tests or running the liquid file directly.

Leave a Reply