This is a small tidbit for routine work. It don’t take much time but help to work with schemas and maps systematically.
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 messageandname it “Current”.
3). Change the “TestMap Input Instance” property of the mapto this name (for example as “<test-map>\Current.xml”)
Fortesting:
1) Copy the test source message to the “test-map” folder with 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 the full test set for my maps. I’ve never lost the test message.
I always know where are my test messages and the name of the 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.