How to customize HTML reports
The data for the reports is fetched from the database and processed through xsl files and finally presented in the UI. Any customization in presentation can be done by modifying the xsl files.By default, XSL files for
html reports are present in config/reports/html/. They can be overridden in userdata/config/reports/html/ folder. Sahi will first look for any report xsl for html in userdata/config/reports/html/. If it is not found, it will default to config/reports/html/.
To modify an existing xsl, copy it over into
userdata/config/reports/html/. Eg. if you want to modify config/reports/html/suites_list.xsl, copy it such that you have userdata/config/reports/html/suites_list.xsl. Now modify this copied file as needed.
-
suites_list.xslis used to render the list of suites that were run - this is the first page that you see when Logs is clicked from the Dashboard.info NOTE that even if you run a single script, it is run as part of a dummy suite. -
suite_report.xslis used for a Suite Report. -
script_report.xslis used for a Script Report. -
testcase_report.xslis used for a Test Cases Report.
infoRefer below link for details.