public static string GetQuickSummary(Test test) { if (test.IsChildNode) { return(""); } string src = TestHtml.GetSourceQuickView(); var lc = new LogCounts().GetLogCounts(test); string[] flags = { ExtentFlag.GetPlaceHolder("testName"), ExtentFlag.GetPlaceHolder("testWarnings"), ExtentFlag.GetPlaceHolder("currentTestPassedCount"), ExtentFlag.GetPlaceHolder("currentTestFailedCount"), ExtentFlag.GetPlaceHolder("currentTestFatalCount"), ExtentFlag.GetPlaceHolder("currentTestErrorCount"), ExtentFlag.GetPlaceHolder("currentTestWarningCount"), ExtentFlag.GetPlaceHolder("currentTestInfoCount"), ExtentFlag.GetPlaceHolder("currentTestSkippedCount"), ExtentFlag.GetPlaceHolder("currentTestUnknownCount"), ExtentFlag.GetPlaceHolder("currentTestRunStatus"), ExtentFlag.GetPlaceHolder("currentTestRunStatusU") }; string[] values = { test.Name, TestHtml.GetWarningSource(test.InternalWarning), lc.Pass.ToString(), lc.Fail.ToString(), lc.Fatal.ToString(), lc.Error.ToString(), lc.Warning.ToString(), lc.Info.ToString(), lc.Skip.ToString(), lc.Unknown.ToString(), test.Status.ToString().ToLower(), test.Status.ToString().ToUpper() }; src = SourceBuilder.Build(src, flags, values); return(src); }
public static string GetQuickSummary(Test test) { if (test.IsChildNode) { return ""; } string src = TestHtml.GetSourceQuickView(); var lc = new LogCounts().GetLogCounts(test); string[] flags = { ExtentFlag.GetPlaceHolder("testName"), ExtentFlag.GetPlaceHolder("testWarnings"), ExtentFlag.GetPlaceHolder("currentTestPassedCount"), ExtentFlag.GetPlaceHolder("currentTestFailedCount"), ExtentFlag.GetPlaceHolder("currentTestFatalCount"), ExtentFlag.GetPlaceHolder("currentTestErrorCount"), ExtentFlag.GetPlaceHolder("currentTestWarningCount"), ExtentFlag.GetPlaceHolder("currentTestInfoCount"), ExtentFlag.GetPlaceHolder("currentTestSkippedCount"), ExtentFlag.GetPlaceHolder("currentTestUnknownCount"), ExtentFlag.GetPlaceHolder("currentTestRunStatus"), ExtentFlag.GetPlaceHolder("currentTestRunStatusU") }; string[] values = { test.Name, TestHtml.GetWarningSource(test.InternalWarning), lc.Pass.ToString(), lc.Fail.ToString(), lc.Fatal.ToString(), lc.Error.ToString(), lc.Warning.ToString(), lc.Info.ToString(), lc.Skip.ToString(), lc.Unknown.ToString(), test.Status.ToString().ToLower(), test.Status.ToString().ToUpper() }; src = SourceBuilder.Build(src, flags, values); return src; }