To generate XSLT reports, We bring to usage Apache Ant. Apache Ant Is opened upwardly root command-line tool which volition aid us to generate XSLT reports for our selenium webdriver information driven software automation testing framework. In STEP 18, We bring successfully Implemented Logging functionality In our information driven framework for software spider web application. Now allow us configure our information driven framework projection to generate XSLT Interactive reports.
Prerequisite : All previous eighteen steps of creating selenium webdriver information driven framework should last followed. You volition notice links of previous eighteen steps on THIS PAGE. In this step, We volition configure our projection as well as organization to generate XSLT reports. Configuration Includes Java software Installation, ANT software Installation, adding build.xml file In projection as well as also verify that all other required files are configured as well as placed at proper house or not.
Why involve XSLT reports
Till now, We bring generated testng reports equally described In STEP 10. But testng reports are non as well as therefore much Interactive as well as nosotros tin non post this form of reports to our manager or client. XSLT reports are rattling Interactive as well as slowly to sympathise them.
ANT Installation For XSLT reports
First of all yous bring to configure emmet In your organization to generate XSLT reports. And to configure ant, Latest coffee version should last Installed In your system. GO TO THIS PAGE to know how to Install Java software as well as configure Apache ANT In your organization amongst detailed description steps. I bring also described how to verify that emmet Is configured properly or non on that page.
Add build.xml File Under Your Project
After Installation of ANT In your system, You bring to range build.xml file nether your "WDDF" projection because emmet sympathise exclusively build.xml file's execution pattern. You tin download range made build.xml file from bellow given link page to Include It In your project.
- Go To This Page as well as download build.xml file.
After downloading build.xml file, Copy-Paste It nether your project's folder In eclipse equally shown In bellow given Image.
Verify Paths In build.xml File
Open the build.xml file.
- Verify the Value for "project.jars" holding at delineate of piece of occupation no 10 of build.xml file. It should last the path of "JarFiles" folder of "WDDF" project. For me It Is "E:\backup\Training\WDDF\JarFiles".
- Verify the path of testng-results.xsl file at delineate of piece of occupation no 91 of build.xml file. It should last "src/com/stta/xslt/testng-results.xsl" If your framework's directory construction Is same to me.
Confirm Required Jar Files Added In Project's Build Path
Once to a greater extent than involve to confirm that bellow given jar files are Included In your project's construct path or not. You involve bellow given files In your project's construct path to generate XSLT reports.
- saxon-8.7.jar
- SaxonLiaison.jar
- testng-xslt-maven-plugin-test-0.0.jar
You tin stance STEP 3 to know from where to download all higher upwardly iii files as well as STEP 4 to know how to add together them In your project's construct path.
Confirm "testng-results.xsl" Is Added In Your Project
As described on STEP 3, "testng-results.xsl" file should last added nether "com.stta.xslt" parcel of "WDDF" project.
Now projection as well as organization configuration part Is completed to generate XSLT reports for our webdriver information driven framework for whatsoever software application. We volition larn close how to generate XSLT reports In adjacent step.