ANT together with other file's configuration to generate XSLT Reports for selenium webdriver software automation exam Is already done In previous STEP 19. So right away configuration purpose Is over to generate XSLT reports. In this step, We volition acquire how to generate XSLT reports for selenium software exam information driven framework.
STEP 20
Prerequisite : All previous nineteen steps of selenium webdriver software testing information driven framework should live on Implemented. You volition honor the links for all the previous steps on THIS PAGE.
Run Test Suites To Generate TestNG Report
Before generating XSLT reports, You need to run your exam suites from "testng.xml" file because XSLT reports are generated using "testng-results.xml" file together with this file volition live on generated when your run your exam from testng.xml file.
Please buy the farm on this matter In your heed -> If y'all are changing something In your software automation exam cases or projection configuration later running your exam cases together with and then y'all are going to generate XSLT reports together with then y'all tin acquire incorrect effect or fault during XSLT reports generation. So ever generate XSLT reports simply side past times side to your exam suites execution completion.
Run your exam suites from testng.xml file. Your testng effect written report volition await similar bellow when y'all volition opened upwards index.html file from test-output folder.
Note : Now y'all tin execute your exam suites from ascendence prompt every bit good using ant run command. See bellow given steps.
Generate XSLT Reports
Once your exam execution acquire completed together with testng results generated, We tin become to generate XSLT report. You need to follow bellow given steps to generate XSLT report.
- Open ascendence prompt.
- Set Project Path : Go to your "WDDF" projection directory In ascendence prompt where your "build.xml" file Is stored every bit shown In bellow Image. Command = cd E:\backup\Training\WDDF
- Verify build.xml Is Accessible : Type command = ant In ascendence prompt together with press acquire into to depository fiscal establishment stand upwards for that nosotros are at right house to generate XSLT reports or not. It should laissez passer on message "BUILD SUCCESSFUL" every bit shown In bellow given Image.
- Remove Previous Build Folder If Any : Type Command = ant clear In ascendence prompt together with press enter. It should laissez passer on message "BUILD SUCCESSFUL" every bit shown In bellow given Image.
- Verify Build Folder Is Generated : Now Refresh your "WDDF" projection In eclipse. ant compile command volition created novel folder amongst advert = build under your projection every bit shown In bellow given Image.
- Execute Test Suites : Type Command = ant run In ascendence prompt together with press enter. It volition execute your all software automation exam suites which are included In testng.xml file.
So right away y'all tin execute your software exam suites from ascendence prompt Instead of testng.xml file.
- Generate XSLT Reports : Type Command = ant reports In ascendence prompt together with press enter. It should laissez passer on message "BUILD SUCCESSFUL" every bit shown In bellow given Images.
- Open XSLT Report : Once more refresh your "WDDF" projection In eclipse. ant reports command volition exercise novel folder amongst advert = XSLT_Reports under your projection every bit shown In bellow given Image.
- You volition honor index.html file In XSLT_Reports folder. That Is XSLT Report of your webdriver test. Open that file In whatever spider web browser. It volition await similar bellow.
XSLT Report
You tin click on exam example advert In left side column(TestNG Results column) to stance exam example effect In detail. If y'all await at inwards a higher house report, It Is Interactive together with slowly to sympathise that how many exam cases are Pass, Fail together with Skip for specific exam case.
So nosotros achieved our target of generating XSLT reports for our selenium webdriver software exam information driven framework.