Wednesday, 17 October 2012

XSLT REPORTS

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.




1 comment:

  1. HI its good but if i want see the Steps Status(pass /fail ) in XSLT .When i click on Test case it will show test steps with (Pass/Fail) IF u hv solution please send me code

    ReplyDelete