Skip to content

Extent Report is not configurable by extent-config.xml file, custom javascript is not working #62

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

Open
HamzaMirza opened this issue Sep 13, 2019 · 12 comments
Labels
bug Something isn't working
Milestone

Comments

@HamzaMirza
Copy link

Extent Report is not configurable by extent-config.xml file, custom javascript is not working

@HamzaMirza
Copy link
Author

HamzaMirza commented Oct 2, 2019

I have fixed the issue, kindly accept my pull request of "#64"

@beloquintana
Copy link

I have this same problem in version 4.0.3. Could you help me, please?

@HamzaMirza
Copy link
Author

HamzaMirza commented Jun 9, 2020

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.

@beloquintana
Copy link

@HamzaMirza I don't understand. This issue is still open or is closed?

@HamzaMirza
Copy link
Author

@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.

@beloquintana
Copy link

I am using the last stable version: 4.0.3

anshooarora added a commit that referenced this issue Jun 9, 2020
@anshooarora
Copy link
Member

@beloquintana Please use this config. As @HamzaMirza pointed out, the configuration entries have changed from "scripts"->"js" and "styles"->"css".

@anshooarora
Copy link
Member

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.

@beloquintana
Copy link

@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?

@anshooarora
Copy link
Member

Hi - more details would help. Which reporter? Can you share the config.xml?

@anshooarora anshooarora reopened this Jun 11, 2020
@beloquintana
Copy link

beloquintana commented Jun 11, 2020

This is my config.xml:
config.zip

It work fine in version 3.1.3 with the tags: script and styles.

@anshooarora anshooarora added the bug Something isn't working label Aug 6, 2020
@anshooarora anshooarora added this to the v5.0.x milestone Aug 6, 2020
@vishal131991
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants