Hi @anshooarora,
Below is the sample code I have written to generate extent report for Selenium C#. It's not throwing any error during execution, but index.html file is not generated in the output directory.
Windows 10
.NET 6.0
ExtentReports 5.0.2
private ExtentReports extent;
[SetUp]
public void Setup()
{
string reportPath = @"C:\Selenium\Csharp\index.html";
extent = new ExtentReports();
extent.AttachReporter(new ExtentSparkReporter(reportPath));
InitDriver();
}
[TearDown]
public void TearDown()
{
extent.Flush();
QuitDriver();
}
Hi @anshooarora, Below is the sample code I have written to generate extent report for Selenium C#. It's not throwing any error during execution, but index.html file is not generated in the output directory.
Windows 10 .NET 6.0 ExtentReports 5.0.2
private ExtentReports extent; [SetUp] public void Setup() { string reportPath = @"C:\Selenium\Csharp\index.html"; extent = new ExtentReports(); extent.AttachReporter(new ExtentSparkReporter(reportPath)); InitDriver();
} [TearDown] public void TearDown() { extent.Flush(); QuitDriver(); }