示例#1
0
 /// <summary>
 /// Sets default values.
 /// </summary>
 public LogResultListener()
 {
     Name     = "Log";
     FilePath = new MacroString()
     {
         Text = "Results/<Date>-<Verdict>.txt"
     };
     FilterOptions = FilterOptionsType.Verbose |
                     FilterOptionsType.Warnings |
                     FilterOptionsType.Info |
                     FilterOptionsType.Errors;
 }
示例#2
0
        /// <summary>
        /// Sets up some default values for the various settings.
        /// User code should use EngineSettings.Current to access the singleton instead of constructing a new object.
        /// </summary>
        public EngineSettings()
        {
            SessionLogPath = new MacroString {
                Text = "SessionLogs/SessionLog <Date>.txt"
            };
            ResultLatencyLimit = 3.0;
            OperatorName       = Environment.GetEnvironmentVariable("USERNAME") ?? Environment.GetEnvironmentVariable("USER") ?? "";
            StationName        = Environment.MachineName;

            // Set OpenTAP to abort on step error by default.
            AbortTestPlan = AbortTestPlanType.Step_Error;

            PromptForMetaData = false;

            ResourceManagerType = new ResourceTaskManager();
        }