Skip to content
Get Free Trial

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.xsl is 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.

  • suite_report.xsl is used for a Suite Report.

  • script_report.xsl is used for a Script Report.

  • testcase_report.xsl is used for a Test Cases Report.

Similarly, it is possible to customize other reports (excel, etc) in Sahi.