Generate XSLT Report(Advanced HTML Report) in Selenium
XSLT stands for XML Style-sheet language for transformation,It provide very rich formatting report using TestNG framework
Precondition-
1- Ant should be installed if not please install using below post
Install ANT
2- At-least one testcase should be executed by TestNg (i.e we should have test-output directory available in home directory)
Step 1- Download XSLT from "https://drive.google.com/folderview?id=0B5v_nInLNoquV1p5YWtHc3lkUkU&usp=sharing"
Step 2- Unzip this and copy all the files and paste into project home directory.
add all files in to project , 'not under src folder'
Step 3- Run build.xml using Ant - To run build.xml file
To check whether the 'ant' installed properly or not
Open CMD and go till project directory and type 'ant' run and hit enter.
To genarate xslt reports using cmd prompt
open cmd prompt, go to project folder, 'not in src folder' and type 'ant generateReport' and hit enter
Step 4- Once build successful then type 'ant generateReport' and hit enter again
Step 5- Once build successful then go to project directory and you will get testng-xslt folder
Inside testng-xslt you will get index.html (this is the main report) open in FF or in Chrome
***reference urls
http://www.learn-automation.com/2014/06/generate-xslt-reportadvanced-html.html
XSLT stands for XML Style-sheet language for transformation,It provide very rich formatting report using TestNG framework
Precondition-
1- Ant should be installed if not please install using below post
Install ANT
2- At-least one testcase should be executed by TestNg (i.e we should have test-output directory available in home directory)
Step 1- Download XSLT from "https://drive.google.com/folderview?id=0B5v_nInLNoquV1p5YWtHc3lkUkU&usp=sharing"
Step 2- Unzip this and copy all the files and paste into project home directory.
add all files in to project , 'not under src folder'
Step 3- Run build.xml using Ant - To run build.xml file
To check whether the 'ant' installed properly or not
Open CMD and go till project directory and type 'ant' run and hit enter.
To genarate xslt reports using cmd prompt
open cmd prompt, go to project folder, 'not in src folder' and type 'ant generateReport' and hit enter
Step 4- Once build successful then type 'ant generateReport' and hit enter again
Step 5- Once build successful then go to project directory and you will get testng-xslt folder
Inside testng-xslt you will get index.html (this is the main report) open in FF or in Chrome
***reference urls
http://www.learn-automation.com/2014/06/generate-xslt-reportadvanced-html.html
No comments:
Post a Comment