How do I test encoding a flat file

In this video, Mike Stevenson demonstrates how to encode and test the encoding of a message in a Logic App. He starts by explaining how to set up a helper Logic App that will encode a message using a specified schema and return the encoded message in the response. The aim is to validate that the schema works correctly.

Next, he shows how to create acceptance tests for the schema using a flat file schema and an XML file. The test involves comparing the expected output of the encoding process with the actual response from the Logic App. By using the Logic App test manager, the encoding process can be tested and validated.

Stevenson also explains how the same test can be run locally against the workflow using the Logic App test framework. This allows for easier testing of the schema before incorporating it into a more complex workflow.

Key takeaways:
– Setting up a helper Logic App to encode messages using a specified schema
– Creating acceptance tests to validate the encoding process
– Running tests locally using the Logic App test framework.

Leave a Reply