extentreports-csharp
extentreports-csharp copied to clipboard
Extent Report is not configurable by extent-config.xml file, custom javascript is not working
Extent Report is not configurable by extent-config.xml file, custom javascript is not working
I have fixed the issue, kindly accept my pull request of "https://github.com/extent-framework/extentreports-csharp/pull/64"
I have this same problem in version 4.0.3. Could you help me, please?
I have this same problem in version 4.0.3. Could you help me, please?
@beloquintana sure, locate script calling part such as ExtentReports/Views/Html/Partials/Scripts.cshtml
And find the problem, which was custom script tag was called before the library was included and also the variable name was incorrectly called, 'js' which was 'JS' DEFINED IN MASTERCONFIG FILE.
It's been a while since I have worked on extent reports, so feel free to dm me, I would love to solve the issue.
@HamzaMirza I don't understand. This issue is still open or is closed?
@HamzaMirza I don't understand. This issue is still open or is closed?
@beloquintana the issue was closed on my pull request. You have older version of extent report, update to the latest version, the issue will be resolved.
I am using the last stable version: 4.0.3
@beloquintana Please use this config. As @HamzaMirza pointed out, the configuration entries have changed from "scripts"->"js" and "styles"->"css".
Also - if possible, I would suggest using version 4.1.0-beta1 from nuget with ExtentHtmlReporter and let me know if you continue to have issues.
@anshooarora Thanks for your answer, I can't use 4.1.0-beta1 for now. My report is loading the javascript code with the config that you recomended me, but I have problem with jquery. The report show me this error: Uncaught ReferenceError: $ is not defined How I can load jquery in my report?
Hi - more details would help. Which reporter? Can you share the config.xml?
Extent Report is not configurable by extent-config.xml file, custom javascript is not working
@HamzaMirza I have few doubts related to customization of extent report using js. Can I have your email id so could ask?