BizUnit compatibility with BizTalk 2013

Nov 4, 2013 at 7:54 AM
Hello,

We are about to start testing our BizTalk project with BizUnit, we know it will work just fine with 2010 version, is BizUnit going to work also with BizTalk 2013?

Is there anything that has to be changed when upgrading the unit testing projects from 2010 to 2013?

Thanks!
Nov 13, 2013 at 8:22 AM
Hi there,

BizUnit in General works with BizTalk 2013 but with limitations:
  • Map Unit Tests won´t work (hopfully someone will develop a new step for that)
  • SSO changed in BTS 2013 and anything making use of it shouldn´t work, too (not tested so far)
Maybe there is more, but nothing I came in contact with yet.

Regards,

René
Apr 19, 2014 at 2:05 AM
Hi I am new to codeplex, but have a 'fix' for BizTalk 2013 mapping test step.

The way I fixed it was to change the 'BizUnit4.0_Src\Src\BizUnit.TestSteps.BizTalk\Map\BizTalkMapTester.cs' file and recompile the BizUnit.TestSteps.BizTalk dll change the execute function to the following:
    /// <summary>
    /// Execute the map, updated to use 'XSLCompiledTransform' for BizTalk 2013, This KB hints at this http://support.microsoft.com/kb/2887564
    /// </summary>
    /// <param name='source'>The input Xml instance to map</param>
    /// <param name='destination'>The ouput Xml instance produced by the map</param>
    public void Execute(string source, string destination)
    {
        using (var inReader = new StreamReader(source))
        {
            var xpathdoc = new XPathDocument(inReader);
            using (XmlWriter writer = XmlWriter.Create(destination))
            {
                Map.Transform.Transform(xpathdoc, Map.TransformArgs, writer);
            }
        }
    }