Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

How to generate Interactive reports Using TestNG+ANT +XSLT In Selenium?

Generate Interactive reports Using TestNG+ANT +XSLT In Selenium

XSLT stands for XML (Extensible Markup Language) Stylesheet Language for Transformations.
XSLT gives interactive(user friendly) reports with "Pie Chart"; but only on TestNG framework. It is better compared to ReportNG and ordinary TestNG reports. Its uses the pure XSL for report generation and Saxon as an XSL2.0 implementation.

XSLT = XSL Transformations

Steps to Generate testng-xslt report:

1. Download testmg-xslt.zip
2. Unzip and copy the testng-results.xsl from the testng-xslt folder(testng-xslt-1.1\src\main\resources) to your own project folder.
3. Now copy the saxon library from (testng-xslt-1.1\lib\saxon-8.7.jar)to your project lib folder.
4. Modify your build.xml of ant and add the following target to it.
Generate Interactive reports Using TestNG+ANT +XSLT In Selenium
XSLT stands for XML (Extensible Markup Language) Stylesheet Language for Transformations.
XSLT gives interactive(user friendly) reports with "Pie Chart"; but only on TestNG framework. It is better compared to ReportNG and ordinary TestNG reports. Its uses the pure XSL for report generation and Saxon as an XSL2.0 implementation.

XSLT = XSL Transformations

Steps to Generate testng-xslt report:

1. Download testmg-xslt.zip
2. Unzip and copy the testng-results.xsl from the testng-xslt folder(testng-xslt-1.1\src\main\resources) to your own project folder.
3. Now copy the saxon library from (testng-xslt-1.1\lib\saxon-8.7.jar)to your project lib folder.


http://www.seleniumeasy.com/testng-tutorials/configuring-reportng-with-testng-to-generate-html-reports

Post a Comment

1 Comments

  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