Showing posts with label Generate XSLT report. Show all posts
Showing posts with label Generate XSLT report. Show all posts

Monday, June 16, 2014

How to Generate XSLT report ?

Its a kind of user friendly report. XSLT stands for XML (Extensible Markup Language) Stylesheet Language for Transformations.  XSLT gives interactive (user friendly) reports with "Pie Chart".

Steps to generate XSLT Report-

1) 1st execute the test cases using ANT tool. Here are the steps to setup and execute the framework through ANT tool - click here

2) Download the XSLT. Please follow the below steps to download.

i) click on this button shown below.



ii) Then click on the download button.



3) After downloading, unzip the downloaded folder-

After unzipped, you will get,



4) Now from the above, copy lib and testng-results.xsl inside your project directory. Don't copy build.xml because you have created that already while doing ANT setup.
Here we are referring the same project which we have already done using POM- LinkedIN_Project_By_POM



5) After copying above files, add the jars files to your project through build path from the lib folder which you have copied in the above step.



6) Now we are ready to gen the XSLT report. As we have already executed our test cases through ANT so now,
i) open cmd and navigate to the project directory.



ii) Then just type ant generateReport and hit enter.



iii) Now a folder will be generated with the name testng-xslt



iv) Open this report in browser-



This is the xslt report-