/// <summary> /// Create new IUT /// </summary> public void Reset() { if (runner != null) { Console.WriteLine("\nClose the implementation window"); runner.closeImplWindow(); } if (runner == null) runner = TestRunner.getTestRunner(formName, path); runner.LaunchApp(); Thread.Sleep(1000); // Start the waiting for timout thread // Will exit the IUT after the last test-case new Thread(exitAppInTimeout).Start(); // Move form //runner.moveForm(new Point(500, 500)); }
public static TestRunner getTestRunner(string formName, string implPath) { if (m_runnerInstance == null) m_runnerInstance = new TestRunner(formName, implPath); return m_runnerInstance; }