Integration Monday – BizTalk ALM And Continuous Integration Concepts

|  Posted: August 31, 2015  |  Categories: Community Events

With Integration Monday reaching a wider audience, we thought it would make sense to write blog posts on the events. We will keep the post very simple with brief snippets from the session and provide links to code samples/demos (if available from the presenter) which will be really helpful for our blog lovers and the community.

You can download the entire article as a PDF document.
Integration Monday – BizTalk ALM And Continuous Integration Concepts

In this blog, let’s take a quick recap of the session on “BizTalk ALM” by Toon Vanhoutte from Codit.

Speaker Profile

Toon Vanhoutte
Toon Vanhoutte is an Integration Architect with over 9 years of experience in the Microsoft Integration space. Toon is a Microsoft Certified Trainer and an AS4 OASIS Committee Member. AS4 is the latest B2B messaging protocol and is a successor of the existing AS2 messaging protocol.

Session Agenda

The scope of the session was towards the technical aspects of BizTalk Application Lifecycle Management (ALM) and Continuous Integration concepts. Throughout the session, Toon made use of Community available software such as BizTalk Map Test Framework, BizTalk Deployment Framework, Winterdom Pipeline & Schema Testing, BizTalk ALM Guidance, and TransMock Integration Testing Framework.

Setting The Context

Toon started off by quoting the “Pain Points” that we often hear from the developers and IT Managers when it comes to Application Development Lifecycle. Say, for instance, a developer being cautious and taking multiple back-ups of the pipeline component before editing it since it’s been used in multiple flows, or, when the developer forgets to update the context promoted properties while regenerating the schema file; such issues can be easily corrected in the ALM Cycle with the help of Unit Testing and Integration Testing, if they are properly in place.

Continuous Integration

The session dived deeper into Continuous Integration concepts where Toon explained the concepts of Continuous Integration (Code Repository, Daily Check-In, Build Automation, Test Automation, and Deploy Automation), their advantages and disadvantages. The key point to note is the “Return On Investment” Factor and Toon stresses the fact that organizations need to prepare well in advance how much they need to spend on Continuous Integration and Application Lifecycle Management. For every project, there has to be a minimum level of Continuous Integration in place to avoid the “pain points” mentioned before – a basic code repository, Automatic Build, and Automatic Unit Testing.

CI & ALM

Example Scenario for Life Cycle Management

Toon considered a real time scenario where an ERP system (a SQL database) communicates with an invoicing system and the invoices are stored as flat files on the disks. There was also an orchestration calling an external web service with two-way port as part of the scenario. The rest of the session mainly revolved around this scenario with lots of hands-on demos on specific concepts like Unit Testing, Automated Build, Automatic Deployment, and Integration Testing (using TransMock Framework).
ALM Scenario

You can download the entire article as a PDF document.
Integration Monday – BizTalk ALM And Continuous Integration Concepts

Unit Testing

As a developer, Unit Testing is a key to know whether the piece of code you’ve developed works effectively or not. Unit testing can be performed directly on the code base, or you have the option to deploy a specific BizTalk Application and run the tests on them. The first approach (to run the unit testing directly on the code base) would be very effective on .Net Libraries, Schemas, Maps, Pipelines, and Pipeline Components and it generally improves your productivity. For example, consider testing the pipeline component. You must first add the pipeline component to the appropriate folder, which may be locked by the BizTalk Host Instance. You are forced to stop the host instance, add the pipeline component, and then restart the host instance. This is a time-consuming process, and if the entire process can be mocked as a part of the unit tests, it automatically improves your productivity.

We recommend you to watch the session in detail where Toon shows various demos on the following –

  • Unit testing of a flat file schema (using Winterdom schema tester)
  • Unit testing of pipelines and pipeline components (using Winterdom PipelineTester)

Automated Deployment

In the demo, Toon uses the BizTalk Development Framework to deploy the solution. He shows the detailed steps to deploy the BizTalk solution automatically. Toon also shows how you can customize the build workflow to apply versioning (using BizTalk ALM Codeplex Powershell Scripts) before deploying the BizTalk solution (automatically).

Set Up Integration Testing

There may be situations when as a developer (in a development environment), you will not have access t0 the backend systems, (in our case the ERP system). Therefore, it may not be practically possible to perform an integration testing between the invoicing application and ERP application. This is where the concept of “TransMock” comes into effect. TransMock is a (new) framework that allows you to easily test the functionality of a BizTalk Server integration on a developer box or a build server without the need of complex setups of system test instances or respective stubs and mock-ups. (Courtesy – http://bizzitalk.blogspot.be/). In our case, all we can do is simply “mock” the ERP setup on the development set up and perform the integration testing between the two systems.

Transmock can be found on Codeplex, and basically consists of two components – the Mockifier and a component that allows for seamless integration with BizUnit by adopting its API and thereby confronting to its test authoring and execution models. In addition to this, Mock Adapter is an essential aspect of the framework. The combination of TransMock specific BizUnit steps and the Mock adapter executing in the respective receive locations and send port makes it possible to carry out tests of BizTalk server integrations in a mock-like fashion. Watch the video to see how you can set up TransMock and perform Integration Testing of your systems.

We believe this will be a very useful video for BizTalk Developers to increase your productivity and perform better unit/integration testing of your applications. This article is just to give you a glimpse of what’s been covered in the session. We recommend you to watch the video to understand all the concepts better.

You can download the entire article as a PDF document.
Integration Monday – BizTalk ALM And Continuous Integration Concepts
Author: Sriram Hariharan

Sriram Hariharan is the Senior Technical and Content Writer at BizTalk360. He has over 9 years of experience working as documentation specialist for different products and domains. Writing is his passion and he believes in the following quote - “As wings are for an aircraft, a technical document is for a product — be it a product document, user guide, or release notes”.

  • Svetoslav Vasilev

    Hi Sriram, i am the author of TransMock and I am pleased to see that it is gaining some popularity in the integration community. I would though ask you for a correction in the short description you make about what the framework consists of. It does not contain a BizUnit test case – it contains a component that allows for seamless integration with BizUnit by adopting its API and with this conforming to its test authoring and execution models. This is achieved by introducing 4 distinct BizUnit test case steps which allows one to test all the 4 different message exchange scenarios one can encounter with BizTalk server integrations. Furthermore along with the Mockifier there is the Mock adapter, which rather essential part of the framework. The combination the TransMock specific BizUnit steps and the Mock adapter executing in the respective receive locations and send ports is what makes possible to carry on tests of BizTalk server integrations in a mock-like fashion.

    Thanks, Svetoslav

    • Sriram Hariharan

      Thank you for correcting me, Svetoslav. I understand what you meant and its definitely an interesting Framework to perform Integration Testing of the product.

One Platform Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

One Platform - Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

One Platform - Operations, Monitoring and Analytics Software
ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

Back to Top