Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not generate Spark Report in C# ExtentReport 5.0.2. - Exception being thrown. #210

Open
garry-edmonds opened this issue Mar 7, 2024 · 1 comment

Comments

@garry-edmonds
Copy link

Written the basic test to see whats going on. Running .Net Framework 4.7.2

        try
        {            
            var ext = new ExtentReports();
            var htmlReporter = new ExtentSparkReporter("C:\\Temp\\Spark.html");
            ext.AttachReporter(htmlReporter);
            ext.CreateTest("Does this show").CreateNode("Child Test").Pass("This passed.");
            ext.Flush();
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            throw;
        }

Getting exception -

Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

@garry-edmonds garry-edmonds changed the title Can not generate report in c'# ExtentReport 5.0.2. Can not generate report in C# ExtentReport 5.0.2. - Exception being thrown. Mar 7, 2024
@garry-edmonds garry-edmonds changed the title Can not generate report in C# ExtentReport 5.0.2. - Exception being thrown. Can not generate Spark Report in C# ExtentReport 5.0.2. - Exception being thrown. Mar 7, 2024
@Khitish1995
Copy link

I'm getting the report but screenshot is not attached when somewhere script throw error while running the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants