MTF - Field length validation issues


I have a field in BTS 2010 map which has field length restriction to 5 characters. When I do "TestMap" with value having more than 5 characters on the map, it throws proper error and does not generate the output file. Whereas when I test the same field length condition using MTF it actually generates the output with value more than 5 characters appearing in actual output file.

How is this possible? MTF should throw an exception, isn't it?

Can somebody help?
Closed Apr 18, 2014 at 12:15 PM by dm_denheijer


dm_denheijer wrote Mar 5, 2014 at 11:03 AM

MTF does not throw an exception because the result of the map is not validated. Basically, this is the same as running Test Map in Visual Studio without validating the output.

It is possible to get the same behaviour by validating the actual file against the schema. You can use an eventhandler on the TestExecuted event for that.

I hope this answers your question.

wrote Apr 18, 2014 at 12:15 PM