Regarding Unit Testing RRS feed

  • Question

  • Hello All,

    What are the ways to Unit Test BizTalk artifacts? Is there a way we can use VSTS (Test Suite)  like we do for .Net applications?

    Thanks, SKGuru

    Monday, September 17, 2012 10:53 PM


All replies

  • I don't know how to test schemas. Schemas do not act.

    I usually test maps and store all source test Xml document in separate folder under source control. I do not automate this.

    I do create the tests for processes, like orchestrations and the whole interfaces (port > [orchestration >...] port. Sometimes tests are the SoapUi projects, sometimes they are the standard Test projects in VS. I really like the SoapUi test functionality. It is is great for fast prototyping, for smock tests, for performance tests. VS tests are better for the continuous integration but require more hand work. 

    I've tried several times to use BizUnit but it was not work for me. Now the most adapters are from the WCF stack, so SoapUi is great for it.

    Leonid Ganeline [BizTalk MVP] BizTalkien: Advanced Questions

    Tuesday, September 18, 2012 3:41 AM
  • In the past I've successfully used BizUnit ( Now I use WFTestDesign (same approach as BizUnit, but with Workflow Foundation):

    Both are good for testing whole interfaces : drop a file, wait for the flow to execute, then compare the output with the expected output.


    Tuesday, September 18, 2012 8:01 AM
  • Hi,

    Check this wiki article for a few very good options and ways of Unit testing biztalk artifacts.

    MCTS: BizTalk Server 2010,BizTalk Server 2006 and WCF
    My Blog:dpsbali-biztalkweblog
    Mark As Answer or Vote As Helpful if this helps.

    Tuesday, September 18, 2012 8:25 AM
  • The BizTalk Software Factory also supports unit testing with BizUnit and MS Test. It supports testing of schemas, mappings and orchestrations. Maybe worth to take a look at, if only for ideas.

    Jean-Paul Smit | Didago IT Consultancy
    Blog | Twitter | LinkedIn
    MCTS BizTalk 2006/2010 + Certified SOA Architect

    Please indicate "Mark as Answer" if this post has answered the question.

    Tuesday, September 18, 2012 11:43 AM
  • You can use BizUnit 4.0 for writing test cases for Biztalk Artifacts . it can run from VSTS like in .net Application .

    You can download it from Here(

    very good article for Test Schema( we can also write test cases for flat file Schemas

    Tuesday, September 18, 2012 12:53 PM
  • You can use BizUnit library in the VSTS to do your automated test.

    1. After you've installed BizUnit, Create a Test Project and  reference/add the following assemblies:

    2. Add a test method

            public void Map_Test()
                BizTalkMapTester mapTester = new BizTalkMapTester(typeof(<YourMapTypeHere>));
                string source = "../Out/InputFiles/SampleIn.xml";
                string destination = "../Out/InputFiles/SampleOut.xml";
                mapTester.Execute(source, destination);

    Randy Aldrich Paulo

    MCTS(BizTalk 2010/2006,WCF NET4.0), MCPD | My Blog

    BizTalk Message Archiving - SQL and File
    Automating/Silent Installation of BizTalk Deployment Framework using Powershell >
    Sending IDOCs using SSIS

    Wednesday, September 19, 2012 8:10 AM