1
Vote

[Feature Request] Multiple Validation Steps

description

I would be keen to have the ability to run multiple validation sub-steps for a test step. For example, I have an MSMQ read step. Against this message data I would like to run: the Xml Schema validation test step to ensure the whole message is valid against schema; and a also run a custom validation step that test certain parts of the message against business rules.

comments

charliemott wrote Jan 6, 2012 at 3:28 PM

Top Tip. In a BizUnit version 4 Sub Steps, reset the poistion of the steam in the Execute method after use. The steam will then be available to subsequent sub steps.
    public override Stream Execute(Stream data, Context context)
    {
        < validation logic here>            
        data.Position = 0; // reset position so stream is available to subsequent sub-steps.
        return data;
    }