Pre Plan Run Event

Hello everyone,

I want to show settings window in a single pop-up window prior to test plan run. I know there is a settings panel for custom settings and others, but what i want to do is that operator should set these settings after pressing the Run button by popping up a window.

I can show the window if there is an event that is fired up before test plan starts to run. Is there any event like that or any other way to do it?

1 Like

Hi @btyilmaz.

You can look into ITestPlanRunMonitor.

     // This must be implemented by something inheriting from ComponentSettings
    public class MyTPRM : ComponentSettings<MyTPRM>, ITestPlanRunMonitor

        // happens very early during the test plan run
        public void EnterTestPlanRun(TestPlanRun plan)
        // happens very late during the test plan run
        public void ExitTestPlanRun(TestPlanRun plan)

Extra tip: For popping up the window I suggest you use UserInput.Request.


I second what @rolf_madsen said!

Though I would like to add that ComponentSettings<MyTPRM> is not optional. If you don’t inherit from this type, then it won’t work.


Thanks!, I achieved exactly what I wanted this way.