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

**URL:** <https://forum.opentap.io/t/step-that-adds-child-steps-automatically-when-test-plan-run-is-initiated/179>\
**Category:** Technical\
**Tags:** plugin\
**Created:** [December 24, 2020, 1:14am UTC](https://forum.opentap.io/t/step-that-adds-child-steps-automatically-when-test-plan-run-is-initiated/179 "2020-12-24T01:14:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![justin\_c\_i](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/justin_c_i/32/232_2.png) [@justin\_c\_i](https://forum.opentap.io/u/justin_c_i)\
**Post date:** [January 10, 2021, 2:00am UTC](https://forum.opentap.io/t/step-that-adds-child-steps-automatically-when-test-plan-run-is-initiated/179/10 "2021-01-10T02:00:19Z")

</div>

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 , 🙂

---

_[View the full topic](https://forum.opentap.io/t/step-that-adds-child-steps-automatically-when-test-plan-run-is-initiated/179)._
