anshooarora / extentreports-java

Community version of Extent API for Java has moved to https://github.com/extent-framework/
http://extentreports.com
Other
528 stars 318 forks source link

How to replace/remove "Extent" label from report located on top left corner. #1070

Open VinitSandesara opened 6 years ago

VinitSandesara commented 6 years ago

Here is my Config.xml where i added javascript code to replace/remove extent label but it doesn't work, Can someone please help here.

screen shot 2018-05-16 at 11 28 15 am

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

standard UTF-8 https Tauck Automation Report Headline 1 yyyy-MM-dd HH:mm:ss ** **

=== Extent report version i have in my project is ======

com.aventstack extentreports 3.0.5
VinitSandesara commented 6 years ago

@anshooarora , Can you please help, this is holding my project deadline.

Thanks Vinit

dipesh17 commented 6 years ago

Hi Vinit, in your extent-config.xml, just update the script tag with the following. This will show VINIT instead of Extent at the top left corner in the report.

<scripts>
          <![CDATA[
                $('.brand-logo').text('VINIT');

            ]]>

</scripts>

I hope this will help to meet your deadline.

TauckAutomation commented 6 years ago

Thanks @dipesh17 for giving your some valuable time however i tried your solution mentioned in your comment above but it didn't work.

FYI, i have extent report version extentreports 3.0.5, do you have same ?

screen shot 2018-05-23 at 12 36 45 pm

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

standard UTF-8 https Tauck Automation Report Tauck Automation Report Headline 1 yyyy-MM-dd HH:mm:ss