示例#1
0
文件: Stepper.cs 项目: juhan/NModel
 /// <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));
 }
示例#2
0
 public static TestRunner getTestRunner(string formName, string implPath)
 {
     if (m_runnerInstance == null)
         m_runnerInstance = new TestRunner(formName, implPath);
     return m_runnerInstance;
 }