Time for action – generating a ReportNG report

  1. Go to the earlier created Java project SampleProject in Eclipse.
  2. Download ReportNG from http://reportng.uncommons.org/ download site.
  3. Unzip and copy the reportng-<version>.jar and velocity-dep-<version>.jar from the unzipped folder to the lib folder under the project.
  4. Download guice from guice site https://code.google.com/p/google-guice/downloads/list.
  5. Unzip the downloaded guice zip file and copy the guice-<version>.jar to the lib folder under the project.
  6. Create a new file named testng.xml under the folder and add the following content to it:
    <suite name="Sample Suite">
      <test name="Sample test">
        <classes>
          <class name="test.SampleTest" />
        </classes>
      </test>
    </suite>
  7. Create a new file named reportng-build.xml ...

Get TestNg Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.