O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required