Posts

Showing posts with the label Unit Testing

BizMock using it for orchestration unit testing

Image
BizMock is a tool that allows for testing BizTalk artifacts without having to deploy artifacts. This is done by a private BizMock adapter that receives the messages. BizMock generates a class based on an XML configuration file where the mapping to schemas, sample files, maps, orchestrations, mapping from logical to (virtual) physical ports are defined (all in your head ). Advantages : The generated code to perform the test is simple, powerful and compact. Disadvantages : It uses T4 templates; errors in the XML file are very difficult to debug and resolve. There is little documentation available and sample code does not show all possibilities. Note: According to the developer a DSL tool is on the way providing an easy mechanism to manufacture the Xml file! In the segments below are some code snippets that shows the usage of BizMock; Application The figure below is a sample project with two schemas, a map and an orchestration. The sample orchestration receives a me...

BizTalk Unit testing – heads up

Image
BizTalk Unit testing was before the release of BizTalk 2009 not an integral part of the product. The community anticipated with awesome frameworks and tools: BizUnit Very stable framework that is a wrapper around NUnit that allows testing using BizUnit steps, complemented with additional steps ( BizUnitExtensions ) and incorperated in the ( BizTalk Software Factory ). This is the framework that suits all your needs by allowing custom BizUnit step development in .Net and uses an Xml based approach. Pipelinetesting framework Very stable framework developed by Tomas Restrepo, very nice and easy to understand. Orchestration profiler Profiler that allows for code coverage by querying the BizTalk database and generating reports on the orchestration shape coverage, allowing insight in the completeness of the test. Present day A new framework has been introduced, that is fitted for one purpose, testing maps using an approach of dynamically reading/manipulating Xml fields by XPath expressions t...