Skip to content

Commit 89bf429

Browse files
committed
fixes #6
1 parent 7843732 commit 89bf429

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ExtentReports/Reporter/ExtentHtmlReporter.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@ public override void Flush(ReportAggregates reportAggregates)
3535
Directory.CreateDirectory(FolderSavePath);
3636

3737
var source = RazorEngineManager.Instance.Razor.RunCompile("Index", typeof(ExtentHtmlReporter), this);
38-
File.WriteAllText(FolderSavePath + "index.html", source);
38+
File.WriteAllText(Path.Combine(FolderSavePath, "index.html"), source);
3939
source = RazorEngineManager.Instance.Razor.RunCompile("Dashboard", typeof(ExtentHtmlReporter), this);
40-
File.WriteAllText(FolderSavePath + "dashboard.html", source);
40+
File.WriteAllText(Path.Combine(FolderSavePath, "dashboard.html"), source);
4141
if (AuthorContext.Context.Count > 0)
4242
{
4343
source = RazorEngineManager.Instance.Razor.RunCompile("Author", typeof(ExtentHtmlReporter), this);
44-
File.WriteAllText(FolderSavePath + "author.html", source);
44+
File.WriteAllText(Path.Combine(FolderSavePath, "author.html"), source);
4545
}
4646
if (CategoryContext.Context.Count > 0)
4747
{
4848
source = RazorEngineManager.Instance.Razor.RunCompile("Tag", typeof(ExtentHtmlReporter), this);
49-
File.WriteAllText(FolderSavePath + "tag.html", source);
49+
File.WriteAllText(Path.Combine(FolderSavePath, "tag.html"), source);
5050
}
5151
if (DeviceContext.Context.Count > 0)
5252
{
5353
source = RazorEngineManager.Instance.Razor.RunCompile("Device", typeof(ExtentHtmlReporter), this);
54-
File.WriteAllText(FolderSavePath + "device.html", source);
54+
File.WriteAllText(Path.Combine(FolderSavePath, "device.html"), source);
5555
}
5656
if (ExceptionInfoContext.Context.Count > 0)
5757
{
5858
source = RazorEngineManager.Instance.Razor.RunCompile("Exception", typeof(ExtentHtmlReporter), this);
59-
File.WriteAllText(FolderSavePath + "exception.html", source);
59+
File.WriteAllText(Path.Combine(FolderSavePath, "exception.html"), source);
6060
}
6161
}
6262

0 commit comments

Comments
 (0)