public void SetReportsConfigurations() { if ((this.ExecutionLoggerConfigurationSetList == null) || (this.ExecutionLoggerConfigurationSetList.Count == 0)) { this.ExecutionLoggerConfigurationSetList = new ObservableList <ExecutionLoggerConfiguration>(); ExecutionLoggerConfiguration ExecutionLoggerConfiguration = new ExecutionLoggerConfiguration(); ExecutionLoggerConfiguration.IsSelected = true; ExecutionLoggerConfiguration.ExecutionLoggerConfigurationIsEnabled = true; ExecutionLoggerConfiguration.ExecutionLoggerConfigurationMaximalFolderSize = 250; ExecutionLoggerConfiguration.ExecutionLoggerConfigurationExecResultsFolder = @"~\ExecutionResults\"; ExecutionLoggerConfigurationSetList.Add(ExecutionLoggerConfiguration); } if ((this.HTMLReportsConfigurationSetList == null) || (this.HTMLReportsConfigurationSetList.Count == 0)) { this.HTMLReportsConfigurationSetList = new ObservableList <HTMLReportsConfiguration>(); HTMLReportsConfiguration HTMLReportsConfiguration = new HTMLReportsConfiguration(); HTMLReportsConfiguration.IsSelected = true; HTMLReportsConfiguration.HTMLReportsFolder = @"~\HTMLReports\"; HTMLReportsConfiguration.HTMLReportsAutomaticProdIsEnabled = false; HTMLReportsConfigurationSetList.Add(HTMLReportsConfiguration); } App.AutomateTabGingerRunner.ExecutionLogger.Configuration = this.ExecutionLoggerConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault(); }
public void SetReportsConfigurations() { try { if ((this.ExecutionLoggerConfigurationSetList == null) || (this.ExecutionLoggerConfigurationSetList.Count == 0)) { this.ExecutionLoggerConfigurationSetList = new ObservableList <ExecutionLoggerConfiguration>(); ExecutionLoggerConfiguration ExecutionLoggerConfiguration = new ExecutionLoggerConfiguration(); ExecutionLoggerConfiguration.IsSelected = true; ExecutionLoggerConfiguration.ExecutionLoggerConfigurationIsEnabled = true; ExecutionLoggerConfiguration.ExecutionLoggerConfigurationMaximalFolderSize = 250; ExecutionLoggerConfiguration.ExecutionLoggerConfigurationExecResultsFolder = @"~\ExecutionResults\"; ExecutionLoggerConfigurationSetList.Add(ExecutionLoggerConfiguration); } if ((this.HTMLReportsConfigurationSetList == null) || (this.HTMLReportsConfigurationSetList.Count == 0)) { this.HTMLReportsConfigurationSetList = new ObservableList <HTMLReportsConfiguration>(); HTMLReportsConfiguration HTMLReportsConfiguration = new HTMLReportsConfiguration(); HTMLReportsConfiguration.IsSelected = true; HTMLReportsConfiguration.HTMLReportTemplatesSeq = 1; HTMLReportsConfiguration.HTMLReportsFolder = @"~\HTMLReports\"; HTMLReportsConfiguration.HTMLReportsAutomaticProdIsEnabled = false; HTMLReportsConfigurationSetList.Add(HTMLReportsConfiguration); } Ginger.Reports.GingerExecutionReport.ExtensionMethods.GetSolutionHTMLReportConfigurations(); ExecutionLoggerConfiguration executionLoggerConfiguration = this.ExecutionLoggerConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault(); // !!!!!!!!!!!!! FIXME // ExecutionLogger executionLogger = App.AutomateTabGingerRunner.ExecutionLogger; // executionLogger.Configuration = executionLoggerConfiguration; } catch (Exception e) { } }