title: Handling Assertions in TestNG
body: <p>How can I continue the test execution in TestNG if an assertion fails? How can I report the failure in the HTML report of TestNG?</p>
  
  <p>When I run the following code, the lines after assertion are executed but in the reports the assertion failure is not listed:</p>
  
  <pre><code>@Test
  public void googleSearch(){
      driver.get("http://www.google.co.in/");
      System.out.println(" ---------- Start -------------");
  
      try {
          Assert.assertTrue(driver.findElement(By.xpath("xyz")).isDisplayed(), "unable to find the link");
      } catch (Throwable t) {
          System.out.println("Error");
      }
      System.out.println(" ---------- End -------------");
  }
  </code></pre>