You must Sign In to post a response.
  • Category: BizTalk

    BizTalk orchestration testing

    Hello Guru's,

    I searching the internet for a bit, to find a good solution for testing my BizTalk Orchestartion. Found a view frameworks like

    BizUnit
    NUnit

    But cant realy find much info about it or samples...
    Can you Guru's provide me some informatie on which Framework is the best for the below setup

    BizTalk Server 2010
    Visual studio 2010
    .NET 4.0 Test project

    Thanks in advance,

    J. Middelkamp
  • #601413
    Hi middlekamp,

    Dear please use this following code for testing of BizTalk Testing Orchestrations



    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.Services.BizTalkApplicationFramework.BizUnit;
    using NUnit.Framework;

    namespace BizTalkUnitTest
    {
    [TestFixture]
    public class TestPO
    {
    public TestPO()
    {
    }

    [TestFixtureSetUp]
    public void Setup()
    {
    // Stopping and Starting BizTalkHostInstance
    BizUnit bizUnit = new BizUnit
    (@"C:\PurchaseOrderSystem\TestCases\Test_Setup.xml",
    BizUnit.TestGroupPhase.TestGroupSetup);
    bizUnit.RunTest();
    }

    [Test]
    public void ValidatePO_Rejected()
    {
    // Testing Orchestration - PO - Rejectio
    BizUnit bizUnit = new BizUnit
    (@"C:\PurchaseOrderSystem\TestCases\Test_1_POSystem.xml");
    bizUnit.RunTest();
    }

    [Test]
    public void ValidatePO_Approved()
    {
    // Testing Orchestration - PO - Approval
    BizUnit bizUnit = new BizUnit
    (@"C:\PurchaseOrderSystem\TestCases\Test_2_POSystem.xml");
    bizUnit.RunTest();
    }



    Thanks And Regards

    Aamir khan

    Keep continue your work in life then you be on the top.

    Thanks & Regards

    Aamir


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.