Error testing ExecuteMapStep using custom functoid

Jun 30, 2011 at 6:09 PM

Hello all,

I was succesfully testing my mapping using BizUnit until I added a custom functoid which is responsible for tranforming a date string to a valid datetime object.
As soon as I added the functoid to my map and ran my test again it failed saying "BizUnit.TestStepExecutionException: BizUnit encountered an error executing a test step ---> System.ArgumentNullException: Value cannot be null. Parameter name: extension".

Looking at the console output I see that it is succesfully starting the ExecuteMapStep but than fails with  the exception message as above. The complete error is below:

Step: BizUnit.TestSteps.BizTalk.Map.ExecuteMapStep started  @ 18:53:40.165 30-06-2011, failOnError = True
Step: BizUnit.TestSteps.BizTalk.Map.ExecuteMapStep ended @ 18:53:40.756 30-06-2011 with ERRORS, exception: System.ArgumentNullException
*******************************************************************************
Error: Exception caught!
BizUnit.TestStepExecutionException: BizUnit encountered an error executing a test step ---> System.ArgumentNullException: Value cannot be null.
Parameter name: extension
   at System.Xml.Xsl.XsltArgumentList.AddExtensionObject(String namespaceUri, Object extension)
   at Microsoft.XLANGs.BaseTypes.TransformBase.get_TransformArgs()
   at BizUnit.TestSteps.BizTalk.Map.BizTalkMapTester.Execute(String source, String destination) in c:\Affinus\Depot\BizUnit\BizUnit4.0\Main\Dev\Src\BizUnit.TestSteps.BizTalk\Map\BizTalkMapTester.cs:line 76
   at BizUnit.TestSteps.BizTalk.Map.ExecuteMapStep.Execute(Context context) in c:\Affinus\Depot\BizUnit\BizUnit4.0\Main\Dev\Src\BizUnit.TestSteps.BizTalk\Map\ExecuteMapStep.cs:line 148
   at BizUnit.BizUnit.ExecuteXamlTestStep(TestStepBase testStep, TestStage stage) in c:\Affinus\Depot\BizUnit\BizUnit4.0\Main\Dev\Src\BizUnit\BizUnit.cs:line 1122
   --- End of inner exception stack trace ---
   at BizUnit.BizUnit.ExecuteXamlTestStep(TestStepBase testStep, TestStage stage) in c:\Affinus\Depot\BizUnit\BizUnit4.0\Main\Dev\Src\BizUnit\BizUnit.cs:line 1138
   at BizUnit.BizUnit.ExecuteSteps(IEnumerable`1 testSteps, TestStage stage) in c:\Affinus\Depot\BizUnit\BizUnit4.0\Main\Dev\Src\BizUnit\BizUnit.cs:line 1087
*******************************************************************************

Hope someone can point me to a solution.

 

Grtz,
Bas

 

Jul 1, 2011 at 2:43 PM

It turned out to be a bug in my functoid where it could not find the processing method that does the actual functoid work.