Step that adds child steps automatically when test plan run is initiated

Hi @david-wsd

I have almost similar situation, difference is ,I don’t want to display child steps in the GUI, just run the steps is enough for me.

I used the below method to run the external steps.

public override void Run()
        {
            if (!(this.ChildTestSteps.Count > 0))
            {
                TestStepList macroStep = null; // Load Tap Steps 
                foreach (var item in macroStep)
                {
                    item.PlanRun = this.PlanRun;
                    item.StepRun = this.StepRun;
                    item.Run();
                }
            }
            else
            {
                this.RunChildSteps();
            }

            this.UpgradeVerdict(Verdict.Pass);
        }

Note : Not a fully tested solution , :slight_smile:

2 Likes