Friday 21 November 2014

Zip Junit Html ANT Reports in Selenium Web driver



Zip Junit Html ANT Reports in Selenium Web driver

1.       Create the build.xml for the project by which we can generate ANT reports.

Detailed description of creating Junit ANT Reports is given in this post.

2.       Now add the below code to the Build.xml to create a zip file in the folder location.

    <target name="addZip">
                <zip destfile="${zip}/testReport.zip" duplicate="preserve">
                    <zipfileset dir="D:\Workspace\TestProject\junit" />
                     </zip>

Here the name of the “destfile” should be the folder where reports should be created and name of the zip file.
The “zipfileset” should be the folder location where junit ant reports are generated.

No comments:

Post a Comment