Big changes
This commit is contained in:
@@ -15,7 +15,7 @@ GOVERNMENT.
|
||||
|
||||
UNPUBLISHED WORK - COPYRIGHT RAYTHEON COMPANY.
|
||||
-------------------------------------------------------------------------*/
|
||||
using ProgramGui;
|
||||
using ProgramLib;
|
||||
using Raytheon.Instruments;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -27,13 +27,10 @@ using System.Threading.Tasks;
|
||||
namespace ProgramLib
|
||||
{
|
||||
/// <summary>
|
||||
/// Methods to call into actions
|
||||
/// </summary>
|
||||
/// Partial class that define all the actions that can be executed
|
||||
/// </summary>
|
||||
public partial class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// Power on UUT
|
||||
/// </summary>
|
||||
public void UutPowerOn()
|
||||
{
|
||||
try
|
||||
@@ -47,17 +44,12 @@ namespace ProgramLib
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex.Message + "\n" + ex.StackTrace);
|
||||
|
||||
// DO NOT THROW in this block
|
||||
// this function will handle the error accordingly since we could be calling this from third-party test executive like TestStand
|
||||
TerminateTestOnMainThreadError(ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Power off UUT
|
||||
/// </summary>
|
||||
public void UutPowerOff()
|
||||
{
|
||||
try
|
||||
@@ -71,8 +63,6 @@ namespace ProgramLib
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex.Message + "\n" + ex.StackTrace);
|
||||
|
||||
// DO NOT THROW in this block
|
||||
// this function will handle the error accordingly since we could be calling this from third-party test executive like TestStand
|
||||
TerminateTestOnMainThreadError(ex);
|
||||
|
||||
Reference in New Issue
Block a user