private void UpdateSuiteExecutionTime() { string[] flags = new string[] { UnifiedReportFlag.GetPlaceHolder("suiteStartTime"), UnifiedReportFlag.GetPlaceHolder("suiteEndTime") }; string[] values = new string[] { this.runInfo.StartedTime.ToString(), this.runInfo.EndedTime.ToString() }; lock (this.sourcelock) { this.unifiedReportSource = SourceBuilder.BuildRegex(this.unifiedReportSource, flags, values); } }
private void UpdateSystemInfo(Dictionary <string, string> SystemInfo) { if (this.unifiedReportSource.IndexOf(UnifiedReportFlag.GetPlaceHolder("systemInfoApplied")) <= 0) { if (SystemInfo.Count > 0) { string str = SourceBuilder.GetSource(SystemInfo) + UnifiedReportFlag.GetPlaceHolder("systemInfoApplied"); string[] flags = new string[] { UnifiedReportFlag.GetPlaceHolder("systemInfoView") }; string[] values = new string[] { str + UnifiedReportFlag.GetPlaceHolder("systemInfoView") }; lock (this.sourcelock) { this.unifiedReportSource = SourceBuilder.BuildRegex(this.unifiedReportSource, flags, values); } } } }
private void UpdateMediaList() { string source = MediaViewBuilder.GetSource <ScreenCapture>(this.mediaList.ScreenCapture, "img"); string[] flags = new string[] { UnifiedReportFlag.GetPlaceHolder("imagesView") }; string[] array = new string[] { source + UnifiedReportFlag.GetPlaceHolder("imagesView") }; if (this.infoWrite < 1 || array[0].IndexOf("No media") < 0) { lock (this.sourcelock) { this.unifiedReportSource = SourceBuilder.BuildRegex(this.unifiedReportSource, flags, array); if (this.mediaList.ScreenCapture.Count > 0) { try { string nthMatch = RegexMatcher.GetNthMatch(this.unifiedReportSource, UnifiedReportFlag.GetPlaceHolder("objectViewNullImg") + ".*" + UnifiedReportFlag.GetPlaceHolder("objectViewNullImg"), 0); this.unifiedReportSource = this.unifiedReportSource.Replace(nthMatch, ""); } catch { } } this.mediaList.ScreenCapture.Clear(); } } source = MediaViewBuilder.GetSource <Screencast>(this.mediaList.Screencast, "vid"); flags = new string[] { UnifiedReportFlag.GetPlaceHolder("videosView") }; array = new string[] { source + UnifiedReportFlag.GetPlaceHolder("videosView") }; if (this.infoWrite < 1 || array[0].IndexOf("No media") < 0) { lock (this.sourcelock) { this.unifiedReportSource = SourceBuilder.BuildRegex(this.unifiedReportSource, flags, array); if (this.mediaList.Screencast.Count > 0) { try { string nthMatch = RegexMatcher.GetNthMatch(this.unifiedReportSource, UnifiedReportFlag.GetPlaceHolder("objectViewNullVid") + ".*" + UnifiedReportFlag.GetPlaceHolder("objectViewNullVid"), 0); this.unifiedReportSource = this.unifiedReportSource.Replace(nthMatch, ""); } catch { } } this.mediaList.Screencast.Clear(); } } this.infoWrite++; }