private string GetSuitesHtml(ReportSet set) { var template = new TemplateCreator(_argProc, TemplateCreator.TemplateNameCombinedReportTestPart); template.SetTemplateParam(TemplateCreator.TemplateParamSuiteName, set.CsvFileName); template.SetTemplateParam(TemplateCreator.TemplateParamSuiteReportLink, _htmlSupport.GetLink("view report", Path.GetFileName(set.FilePath))); template.SetTemplateParam(TemplateCreator.TemplateParamSuiteResult, _htmlSupport.GetHtmlColoredForResult(set.OverallResult, set.OverallResult.ToString())); template.SetTemplateParam(TemplateCreator.TemplateParamSuiteTestsPassed, set.CountTestsPassed); template.SetTemplateParam(TemplateCreator.TemplateParamSuiteTestsTotal, set.CountTests); return(template.ToString()); }
private void WriteReportHeadingHtml(StreamWriter sw, ReportSet reports, string suiteName) { sw.Write(_htmlSupport.GetTagStart("table")); WriteHtmlRow(sw, _htmlSupport.GetEmphasisedText("screenium Test Suite Results:"), ""); WriteHtmlRow(sw, "Test Suite:", suiteName); WriteHtmlRow(sw, "Created: ", DateSupport.ToString(reports.Created)); WriteHtmlRow(sw, "Duration: ", DateSupport.ToString(reports.Duration)); WriteHtmlRow(sw, "Suite Result: ", _htmlSupport.GetHtmlColoredForResult(reports.OverallResult, reports.OverallResult.ToString())); var resultHtml = reports.CountTestsPassed + " of " + reports.CountTests + " tests passed."; WriteHtmlRow(sw, "Tests Passed: ", resultHtml); sw.Write(_htmlSupport.GetTagEnd("table")); }