In this blog, we
are going to learn how we can add customize extent report with the logo of our
own choice.
To know how to setup
extent report please refer to this blog.
To display the logo on the top of the extent report just add below XML configuration to the extent-config.xml path placed inside the resources folder.
To display the logo on the top of the extent report just add below XML configuration to the extent-config.xml path placed inside the resources folder.
In this example, I have added selenium logo at
the top of extent report.
The full extent-config.xml path would look
something like below
After executing our
test Result would be :
where is the extent-config.xml file?
ReplyUpdated please check now
ReplyHi , I am using extent report v4 without xml file. I am not sure how to associate xml file with extent report code. Can you please help. Currently I am customizing on code level
ReplyhtmlReporter.config().enableTimeline(false);
htmlReporter.config().setDocumentTitle("AUTOMATION");
htmlReporter.config().setReportName("XYZFREEDOM SANITY AUTOMATION REPORT");
I have used same xml file, but still not able to generate report with Logo. Can you suggest the changes.
ReplyI can't find the lines in above code where you will be declaring for the logo. Can you please tell
ReplyWell we really like to visit this site, many useful information we can get here. visit this site
Reply