public override void executeTest( ) { NewProjectTest.StartHolodeckSettingProjectLocationAppLocation("C:\\Test.hdp", "z:\\notepad.exe"); Holodeck.NewProjectWizard.ExitHolodeckOnErrorDialog( ); WaitForHolodeckToExit("Failure! Holodeck failed to exit as expected when path is not correct."); }
public override void executeTest( ) { NewProjectTest.RunTestCases("c:\\test1.hdp", "c:\\windows\\system32\\write.exe", true, false, "No", "No"); // Make sure that the AUT is running... //WaitForAutToStart( ); // will throw an exception if it doesn't start after a specific period of time... // Now, we must exit Holodeck... Holodeck.NewProjectWizard.ExitHolodeckWhenRunningNormally( ); // Wait for Holodeck to exit... WaitForHolodeckToExit("Failure! Holodeck failed to exit while normally intercepting an AUT."); }
/// <summary> /// The main entry point for the application. /// </summary> static int Main(string[] args) { try { NewProjectTest NewProjectTest = new NewProjectTest( ); // parse any command line arguments... NewProjectTest.parseCommandLineArgs(args); if (!RunTest.printingUsageInfo) { Log.printTestStatus("==> TEST PASSED! <=="); } return(0); } catch (TestExceptions) { // Exceptions that have occurred have been rethrown, but // they were already printed out, so we just catch it here. // if any exception occurs, it is thrown again... // this prevents us from causing an unhandled exception... } catch (Exception e) { // Catch ANY other exception and print out an error. Log.printError("\nMessage:\n\n" + e.Message + "\n\nStack Trace:\n\n" + e.StackTrace); } finally { // Close the logfile if it is open... if (Log.logWriter != null) { Log.logWriter.Close( ); } } if (!RunTest.printingUsageInfo) { Log.printTestStatus("==> TEST FAILED! <=="); } // some exception occurred... return(1); }
/// <summary> /// The main entry point for the application. /// </summary> static int Main(string[] args) { try { NewProjectTest NewProjectTest = new NewProjectTest( ); // parse any command line arguments... NewProjectTest.parseCommandLineArgs( args ); if ( ! RunTest.printingUsageInfo ) Log.printTestStatus( "==> TEST PASSED! <==" ); return 0; } catch ( TestExceptions ) { // Exceptions that have occurred have been rethrown, but // they were already printed out, so we just catch it here. // if any exception occurs, it is thrown again... // this prevents us from causing an unhandled exception... } catch ( Exception e ) { // Catch ANY other exception and print out an error. Log.printError( "\nMessage:\n\n" + e.Message + "\n\nStack Trace:\n\n" + e.StackTrace ); } finally { // Close the logfile if it is open... if ( Log.logWriter != null ) Log.logWriter.Close( ); } if ( ! RunTest.printingUsageInfo ) Log.printTestStatus( "==> TEST FAILED! <==" ); // some exception occurred... return 1; }