Open dhinaraj opened 6 years ago
@dhinaraj - This doesn't look to be an Extent Report issue. Specflow has its own Binding at different levels like - Step Definitions, Hooks etc. It appears you might have an issue there, can you please remove Extent reports code or comment them out and rebuild the solution? My 2 cents is you will probably end up seeing the same exception again.
i had the same issue and this is what i did and it worked for me i used the createnode with angle brackets and typed in Scenario into the angle brackets
Trying to use Extent Report (3.0.2) for Specflow BDD test report and extent.flush() method results in error mentioned in title
Code:
private static ExtentReports extent; private static ExtentTest FeatureTest; private static ExtentTest ScenarioTest; private static ExtentTest StepTest; private static DateTime reportFolderNameWithDateAndTime = new DateTime(); private static string reportDateTimeString = reportFolderNameWithDateAndTime.ToString(); private static string reportLocation = @"C:\Users\sesa473389\Desktop\"; private static ExtentHtmlReporter htmlReporter;(FeatureContext.Current.FeatureInfo.Title);
}
public static void HtmlReportBeforeFeature() { extent = GetExtent(); FeatureTest = extent.CreateTest