BizTalk: Tips: Cumulative Map and Schema Testing

This is a small tidbit for routine work. It doesn't take too much time but helps with schema and map development.
 
First time:
1). For each map I create the <test-map> folder as:
TestCases\
                 Maps\
                                A12_311_to_Canonical\
                                A12_915_to_Canonical\
2). Get the first test source message and place it in the <test-map> folder. Create a copy of this message and name it "Current".
3). Change the "TestMap Input Instance" property of the map to this name (for example as "<test-map>\Current.xml")
 
For testing:
1) Copy the test source message to the "test-map" folder with a meaningful name (for example as "TwoR4.MustGiveError")
2) Copy the whole text from this file to the Current file. Save Current. (I constantly keep open the Current file in the text editor.)
3). Test the map.
 
repeat 1-3.
 
As result I have a full test set for my maps. I've never lost the test message.
I always know where are my test messages and a name of a current test message, it is always the Current :) .
This is a test driven approach. The test data are accumulated and never lost.
 
The same technique I use for test schemas (using theValidate Instance command). As a result I create such folder structure:
TestCases\
                 Maps\
                                A12_311_to_Canonical\
                                A12_915_to_Canonical\
                                ...
                Schemas\
                                A12_311\
                                A12_915\
                                Canonical\
                                ... 
 
Let me know what you think about this.
Print | posted on Wednesday, August 15, 2007 1:58 PM

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification: