Beispiel #1
0
 public override void executeTest( )
 {
     HolodeckProcess.Start(100);
     HolodeckPane.Reset();
     HolodeckPane.File_NewProject();
     NewProjectPane1.Reset();
     NewProjectPane1.SetProjectLocation("C:\\Test.hdp");
     NewProjectPane1.Next();
     NewProjectPane2.Reset();
     NewProjectPane2.SetApplicationName("C:\\WINDOWS\\Notepad.exe");
     NewProjectPane2.Next();
     NewProjectPane3.Reset();
     NewProjectPane3.SetPauseApplication(true);
     NewProjectPane3.Finish();
     HolodeckPane.Application_ScheduledTest( );
     try
     {
         Holodeck.ScheduleTestWizard1.StartScheduleTest(functionToBeTested);
     }
     catch (Holodeck.HolodeckExceptions.HolodeckCrashedException)
     {
         return;
     }
     catch (System.Exception)
     {
         return;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Start Holodeck by passing in the executable it is supposed to run...
        /// </summary>
        /// <param name="Executable"></param>
        public static int startHolodeck(string Executable)
        {
            HolodeckProcess.Start(100);

            HolodeckPane.Reset();
            HolodeckPane.File_NewProject();
            NewProjectPane1.Reset();
            NewProjectPane1.SetProjectLocation("C:\\Test.hdp");
            NewProjectPane1.Next();
            NewProjectPane2.Reset();
            NewProjectPane2.SetApplicationName(Executable);
            NewProjectPane2.Next();
            NewProjectPane3.Reset();
            NewProjectPane3.SetPauseApplication(true);
            NewProjectPane3.Finish();

            return((int)Holodeck.HolodeckProcess.GetProcessID( ));
        }