What is XSLT reports?
XSLT stands for Extensible Style sheet Language Transformations. TestNG has default built in html reports which acutally presents a UI report of test scripts but if there is a urge to generate reports with graphical presentation more attractive UI then we can go for xslt reports. XSLT reports are basically more styling done for html which will generate graphical result of test scripts that's been executed.
To get xslt reports
•
Go to project (Eclipse) and create new package(xslt)
•
Create a new file with “ .xsl extension”.
(Or)
•
Paste the testng-results.xsl in the xslt package
•
Add line to bat file after run as follows
“ant makexsltreports”
•
Now go to project ->test-output->index.html.