Moved from Klovrepo.
Got Object reference not set to an instance of an object on
Test.AddScreenCaptureFromPath(DoTakeScreenshot()) //DoTakeScreenshot() saves screenshot to the disk and returns its full path
Stacktrace:
at AventStack.ExtentReports.Reporter.KlovReporter.InitMedia()
at AventStack.ExtentReports.Reporter.KlovReporter.OnScreenCaptureAdded(Test test, ScreenCapture screenCapture)
at AventStack.ExtentReports.Model.Report.<>c__DisplayClass26_0.b__0(IExtentReporter x)
at System.Collections.Generic.List1.ForEach(Action1 action)
at AventStack.ExtentReports.Model.Report.AddScreenCapture(Test test, ScreenCapture sc)
at AventStack.ExtentReports.ExtentTest.AddScreenCaptureFromPath(String path, String title)
All the configurations are default. Running on windows 10, redis = MSOpenTech's redis v2.6.12
Klov 0.0.3
Iitialization code:
internal class ExtentManager
{
private static readonly ExtentReports _instance = new ExtentReports();
Moved from Klovrepo. Got Object reference not set to an instance of an object on Test.AddScreenCaptureFromPath(DoTakeScreenshot()) //DoTakeScreenshot() saves screenshot to the disk and returns its full path
Stacktrace: at AventStack.ExtentReports.Reporter.KlovReporter.InitMedia() at AventStack.ExtentReports.Reporter.KlovReporter.OnScreenCaptureAdded(Test test, ScreenCapture screenCapture) at AventStack.ExtentReports.Model.Report.<>c__DisplayClass26_0.b__0(IExtentReporter x) at System.Collections.Generic.List1.ForEach(Action1 action) at AventStack.ExtentReports.Model.Report.AddScreenCapture(Test test, ScreenCapture sc) at AventStack.ExtentReports.ExtentTest.AddScreenCaptureFromPath(String path, String title)
All the configurations are default. Running on windows 10, redis = MSOpenTech's redis v2.6.12 Klov 0.0.3
Iitialization code: internal class ExtentManager { private static readonly ExtentReports _instance = new ExtentReports();
}
and after that initialize reporter like Report = ExtentManager.Instance;