extent-framework / extentreports-java

Extent Reporting Library, Java
http://extentreports.com
Apache License 2.0
226 stars 130 forks source link

unable to add logo in extent spark report. #368

Open saikrishna446 opened 2 years ago

saikrishna446 commented 2 years ago

this is my extent.xml file

<?xml version="1.0" encoding="UTF-8"?>

standard UTF-8 http Extent Employee Care Automation Report ]]> top img { float: left;height: 90%;margin-left: 30px;margin-top: 2px;width: auto; }]]>

this is my extent.properties file

extent.reporter.spark.start=true extent.reporter.spark.out=test-output/HtmlReport/ExtentHtml.html

extent.reporter.pdf.start=true

extent.reporter.pdf.out=test output/PdfReport/ExtentPdf.pdf

basefolder.name=reports

basefolder.datetimepattern=d-MMM-YY HH-mm-ss

extent.reporter.spark.vieworder=dashboard,test,category,exception,author,device,log systeminfo.os=windows systeminfo.user=saikrishna systeminfo.build=1.1 systeminfo.AppName=Employee Care systeminfo.reportName=Employee Care extent.reporter.spark.config=src/test/resources/extent-config.xml

extent.reporter.avent.start=false extent.reporter.bdd.start=false extent.reporter.cards.start=false extent.reporter.email.start=false extent.reporter.html.start=true extent.reporter.klov.start=false extent.reporter.logger.start=true extent.reporter.tabular.start=false

extent.reporter.avent.config= extent.reporter.bdd.config= extent.reporter.cards.config= extent.reporter.email.config= extent.reporter.klov.config= extent.reporter.logger.config= extent.reporter.tabular.config=

extent.reporter.avent.out=test-output/AventReport/ extent.reporter.bdd.out=test-output/BddReport/ extent.reporter.cards.out=test-output/CardsReport/ extent.reporter.email.out=test-output/EmailReport/ExtentEmail.html

extent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html

extent.reporter.logger.out=test-output/LoggerReport/ extent.reporter.tabular.out=test-output/TabularReport/

screenshot.dir=test-output/ screenshot.rel.path=../

@anshooarora need your help for adding logo to reports

image

saikrishna446 commented 2 years ago

@anshooarora could u please help us this issue

grasshopper7 commented 2 years ago

in extent version 5, the custom javascript has to be written in xml 'js' tags and stylesheet in 'css' tags. U should have a look at cleaning up the extent properties, many of the entries are no longer required.

Have you tried changing the default logo, at the left, with your image using custom javascript?

rmathur75 commented 1 year ago

Could you please paste the sample code using JavaScript in config.xml file. Even my requirement is to Rename the chart from Test to Feature, Steps to Scenario and Log events to Steps for extent report 5.0.5. Please not that i am not using config.properties file and directly creating extent report object in class itself.