title: How can I include a failure screenshot to the testNG report
body: <p>currently I am taking screenshots of my test failures this way:</p>
  
  <pre><code>@AfterMethod(alwaysRun=true)
  public void catchExceptions(ITestResult result){
      Calendar calendar = Calendar.getInstance();
      SimpleDateFormat formater = new SimpleDateFormat("dd_MM_yyyy_hh_mm_ss");
      String methodName = result.getName();
      if(!result.isSuccess()){
          File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
          try {
              FileUtils.copyFile(scrFile, new File((String) PathConverter.convert("failure_screenshots/"+methodName+"_"+formater.format(calendar.getTime())+".png")));
          } catch (IOException e1) {
              e1.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Can I include my own screenshots into the TestNG report link or pic? If yes how?</p>
  
  <p>All I found on that online is the FEST framework. But since I am already taking the screenshots I dont want to use another framework.</p>