title: Generating HTML TestNG reports
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5433544/generating-html-testng-reports">Generating HTML TestNG reports</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,
    I have two methods: addUser() and deleteuser(). Now I have to generate a HTML report for that using TestNG. I am using Selenium to test our website. So while running it is generating it's own html file. I want to create my own. My class structure looks like this:</p>
  
  <pre><code>public class test{
  
  setup method
  testcase method
  stop method
  }
  </code></pre>
  
  <p>Now where I have to include code for generating reports. I didn't have any idea about this. Actually I tried to use ITestListener and IReporter but they ask me to override generateMethod. But I don't know how to use those methods. Can anyone guide me with sample code ?</p>