Restricting type of ChildStep used in ParentStep and vice versa

In some cases, we would want to allow only specific kind of TestSteps as Children in a ParentStep and vice versa.

This is possible by using the AllowAsChildIn and AllowChildrenOfType attributes on the Child and Parent Step classes respectively.

Below is an example of using both attributes.


4 Likes