-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support for .NET Core #43
Comments
Since RazorEngine is a required dependency of ExtentReports, it would help if it supports .Net Core before any work happens from our end. It is currently an open issue on their end.. I would suggest opening a ticket for .NET core when RazorEngine is ready. |
@anshooarora this may be closed |
@anshooarora It looks like the RazorEngine project is on a hiatus Antaris/RazorEngine#535 (comment). I don't suppose there are any plans on moving to a new one? |
@anshooarora I feel we can keep this open as slow-burner until a resolution is in sight. @vivek201 feel free to recommend alternatives that can be used |
Very nice, i will. |
worked for me! thanks |
@felipeotarola @brunoj1 @Samil2018 when i try to use this package with Specflow 3 i get some warning like |
@MaheshGooner
|
@felipeotarola can you please give the imports as well ? what are Settings ? ConfigurationBuilder() ? In my case i have the following two classes Hooks.cs
ScenarioExtensionMethods.cs
I get the warning |
@MaheshGooner Settings and ConfigurationBuilder() are custom methods that I use in my framework. you can skip dem :) It looks like you are missing And your CreateFeature should look like this.
|
@felipeotarola i still din't get it right. As my hooks class is static class i am unable to use context injection. do you have the complete example of the implementation of Extent reports for .net core ? sorry for asking too many details but i'm new to .net |
Hi @felipeotarola, (I already have RazorEngine.NetCore added to the NuGet). |
Very helpful guys, I migrated from 3 to 4, using .net core and trying to find a way to make it work but couldnt find any help anywhere. Big help, thanks! |
@archVille were you able to include screenshots to the extent reports ? |
I havent reached that stage yet, but it is in my 'TODO' list as I previously had screenshots functionality implemented and need to migrate them with the same way. |
Thanks @archVille. I don't get that working yet. I can take screenshot but it does not attch it to the report by calling Would be helpful if someone gets that to work and post. Thanks |
Did you guys got to run ExtentReports with .net core? I installed a lot of packages Razor, extensions, etc, but even then I'm getting this error Message=Could not load type 'System.Security.Principal.WindowsImpersonationContext' Is there any way to run extent reports with .net core? Or it's not possible yet? Please, help me thank you very much! |
yeah. i got that to work apart from not being able to attach screenshots. Below is my configuration
sorry for being lazy and pasting all the dependencies
|
@MaheshGooner , I'm using x unit, so I don't have [BeforeTestRun], [BeforeFeature] annotations, so I will try to do the same you did. So, did you download nuget all of these packages below using nuget? These are the required packages to run the Extent Reports?
thanks! |
@lucascologni That's correct. And yeah i used Nunit Test project. |
Hi, I got to generate the extent reports, but it's generating 2 files. index.html But I created with the name "ReportTest.html" but the name was not set. Do you know what can it be ?
private static string GetReportsClassLibraryPath() => Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..\..\..\"); Thanks! |
Which version of ExtentReports this fix is available in? |
Are you talking about the report name that is not applying ? If so, I coudn't find any answer about it |
I am struggling with Visual Studio code with an issue. Following is the project file Exe netcoreapp3And I get following error on report.Flush(); System.TypeLoadException : Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Test Run Failed. |
@MaheshGooner Is the attachment issue fixed?? Any workaround exist |
@vinuthakbapu I have not worked on it after that so no update. But if you can get it work do let me know please. Would be useful |
Official .NET Core/Standard release will be available soon. Some ports from the Java version are now available too. Initial: https://github.com/extent-framework/extentreports-csharp/tree/net-core |
Support for .Net Core/Standard is available starting 4.1.0-alpha. |
@anshooarora Is the alpha package available anywhere, potentially as a pre-release to try out? |
Did you get solution to this? I am facing the same issue |
Was there ever a solution for this? |
you can use ExtentV3HtmlReporter instead of ExtentHtmlReporter and it will be ok. it worked for me |
How you manage to use ExtentV3HtmlReporter with .NET core? if I just change ExtentHtmlReporter for ExtentV3HtmlReporter I get error |
I used extent report for .net core
https://www.nuget.org/packages/ExtentReports.Core/
From: Christophe <notifications@github.com>
Sent: Thursday, March 12, 2020 5:13 PM
To: extent-framework/extentreports-csharp <extentreports-csharp@noreply.github.com>
Cc: Anuj Singh <Anuj.Singh@bentley.com>; Comment <comment@noreply.github.com>
Subject: Re: [extent-framework/extentreports-csharp] Support for .NET Core (#43)
Hi, I got to generate the extent reports, but it's generating 2 files.
index.html
dashboard.html
But I created with the name "ReportTest.html" but the name was not set.
Do you know what can it be ?
public static void CreateReport(string reportName)
{
ExtentHtmlReporter extentHtmlReporter = new ExtentHtmlReporter(GetReportsClassLibraryPath() + reportName + ".html");
_extentReport = new AventStack.ExtentReports.ExtentReports();
_extentReport.AttachReporter(extentHtmlReporter);
AddReportSystemInfo();
var test = _extentReport.CreateTest("ExtentTestCase");
test.Log(Status.Info, "Step 1: Test Case Starts.");
test.Log(Status.Pass, "Step 1: Test Case for Pass.");
test.Log(Status.Fail, "Step 3: Test Case Failed.");
_extentReport.Flush();
}
private static string GetReportsClassLibraryPath() => Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "......");
Thanks!
you can use ExtentV3HtmlReporter instead of ExtentHtmlReporter and it will be ok. it worked for me
How you manage to use ExtentV3HtmlReporter with .NET core? if I just change ExtentHtmlReporter for ExtentV3HtmlReporter I get error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_extent-2Dframework_extentreports-2Dcsharp_issues_43-23issuecomment-2D598142334&d=DwMCaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=18UKqRJ5qxpJbabnAfUWAdcS6_uO6lsyxtQKlrV8mMA&m=z7HT_qRjtBhKhAGhjvUCr5ObgVc462W5dx6vseCVHzY&s=CzLJDMD6cuDrsGvWoPeBQGMhSDmc3Y89yDCyjAb33yo&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AFU2PFOH7LINCDSAJ7OQ32DRHDDFNANCNFSM4G2AGJXA&d=DwMCaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=18UKqRJ5qxpJbabnAfUWAdcS6_uO6lsyxtQKlrV8mMA&m=z7HT_qRjtBhKhAGhjvUCr5ObgVc462W5dx6vseCVHzY&s=BWVPx1aW1-qx_d2S8TF9Jay8iZpz8ODEfT6WveVdhqQ&e=>.
|
Not working For me, Can you tell me How to use that. |
Hi All,
[test] |
This is fixed in latest dll of ExtentReports 4.1.0 beta1 |
Hello,
I´m having trouble to implement ExtentReport on a .NET Core application, only the RazorEngine package is on .NET Framework.
There is any sollution for this problem?
Thanks in advance
The text was updated successfully, but these errors were encountered: