Tuesday, March 3, 2015

Generate PDF report for selenium/testng test cases.

Use Open source pdfngreport plugin to generate the pdf report for the selenium/testng test cases execution.

It's Opensource and in maven repository

<dependency>
        <groupId>com.uttesh</groupId>
        <artifactId>pdfngreport</artifactId>
        <version>2.0.3</version>
</dependency>

Official WebPage http://uttesh.github.io/pdfngreport/

Pdf report will have chart shows how many test cases passed/failed/skipped.





Status table which shows full detail status of each test cases.



Exception summary of failed test cases.

Related Posts:

  • Compare images are same by javaWe can compare the given images are same or not by comparing the buffer data of the image. 1. Compare the image sizes are same or not. 2. Compare the binary data of two images are same or not. sample code : import java.awt… Read More
  • Reverse elements in ArrayReverse all elements in array, traditional way how we use to do is get the array and iterate through the for loop and use swap logic to move to temporary array and get the result. But from jdk 1.5 introduced reverse() in ja… Read More
  • Generate PDF page as imageWe can generate the image of pdf page by using the Pdf-renderer Simple class which generate the images file of given pdf file. /* * To change this license header, choose License Headers in Project Properties. * To change … Read More
  • Regular expression to extract the src tag details from given image tag or html source text By using the regular expression we can extract the any data from the given input, here we are trying to get the src attribute value from the given image tag or html text data. Image 'src' attribute extract Regx: <img[^&… Read More
  • find character uppercase/lowercase count from given textFind the character upper/lower case occurrence count with simple single line code without iteration in java. int counta = text.split("(?=[a])").length - 1; This simple code will find all the lowercase character 'a… Read More

1 comment:

  1. Hi.. whether the file will be generated automatically? if yes then where

    ReplyDelete