Example #1
0
        public void SetHTMLReportConfigurationWithDefaultValues(HTMLReportConfiguration reportConfiguraion)
        {
            reportConfiguraion.ReportLowerLevelToShow            = HTMLReportConfiguration.ReportsLevel.ActionLevel.ToString();
            reportConfiguraion.ExecutionJsonDataLowerLevelToShow = HTMLReportConfiguration.ReportsLevel.ActionLevel.ToString();
            reportConfiguraion.ShowAllIterationsElements         = false;
            reportConfiguraion.UseLocalStoredStyling             = false;
            reportConfiguraion.RunSetFieldsToSelect           = GetReportLevelMembers(typeof(RunSetReport));
            reportConfiguraion.EmailSummaryViewFieldsToSelect = GetReportLevelMembers(typeof(RunSetReport));
            reportConfiguraion.GingerRunnerFieldsToSelect     = GetReportLevelMembers(typeof(GingerReport));
            reportConfiguraion.BusinessFlowFieldsToSelect     = GetReportLevelMembers(typeof(BusinessFlowReport));
            reportConfiguraion.ActivityGroupFieldsToSelect    = GetReportLevelMembers(typeof(ActivityGroupReport));
            reportConfiguraion.ActivityFieldsToSelect         = GetReportLevelMembers(typeof(ActivityReport));
            reportConfiguraion.ActionFieldsToSelect           = GetReportLevelMembers(typeof(ActionReport));

            reportConfiguraion.RunSetSourceFieldsToSelect        = GetReportLevelMembers(typeof(LiteDbRunSet), true);
            reportConfiguraion.GingerRunnerSourceFieldsToSelect  = GetReportLevelMembers(typeof(LiteDbRunner), true);
            reportConfiguraion.BusinessFlowSourceFieldsToSelect  = GetReportLevelMembers(typeof(LiteDbBusinessFlow), true);
            reportConfiguraion.ActivityGroupSourceFieldsToSelect = GetReportLevelMembers(typeof(LiteDbActivityGroup), true);
            reportConfiguraion.ActivitySourceFieldsToSelect      = GetReportLevelMembers(typeof(LiteDbActivity), true);
            reportConfiguraion.ActionSourceFieldsToSelect        = GetReportLevelMembers(typeof(LiteDbAction), true);

            reportConfiguraion.Description = string.Empty;
            using (var ms = new MemoryStream())
            {
                string file   = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "Images", "@amdocs_logo.jpg");
                Bitmap bitmap = new Bitmap(file);
                reportConfiguraion.LogoBase64Image = HTMLReportConfiguration.BitmapToBase64(bitmap);
            }
        }