title: how to get assertion error in testng emailable report?
body: <p>Below is my code</p>
  
  <pre><code>public void test58() throws FileNotFoundException{
  
          for(int i=16; i&lt;65; i++){
                      News_details nd=PageFactory.initElements(driver, News_details.class); 
                      nd.Stock_Exchange_List();
                      //click on edit stocklist
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/table/tbody/tr/td/a/span")).click();
  
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[5]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[6]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[7]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[8]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[9]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[10]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[11]/td[4]/a/img")).click();
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr[12]/td[4]/a/img")).click();
                      List&lt;WebElement&gt; els = driver.findElements(By.xpath("//input[@type='checkbox']"));
                          for( WebElement el : els ) {
                              if ( el.isSelected() ) {
                                  el.click();
                              }
                          }
                      try{
                      //Select an stock exchange
                      driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/table/tbody/tr["+i+"]/td[2]/input")).click();
  
                      }
                      catch(org.openqa.selenium.NoSuchElementException error)
                      {
                              continue;
                      }
                      //save
                      driver.findElement(By.id("navpanel_fwd")).click();
                      driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
                      String Stocklist=driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/div[2]/div[2]/strong")).getText();
                      driver.navigate().to(url);
  
                      BottomTable1=driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[2]/div[3]/form/div[2]/div[1]/div[3]/table/tbody/tr/td/table[2]/tbody/tr[12]/td[2]")).getText();
                      try{
  
                          Assert.assertTrue(BottomTable1.contains(Stocklist),Stocklist+ "Stock Exchange Not Found");
  
                      }
                      catch(AssertionError err){
                          err.printStackTrace();
                          System.out.println(err);
                          //System.setOut(new PrintStream(new FileOutputStream("d://output.txt")));
                          //Reporter.log("PASS/FAIL");
                          //throw err; 
                          continue;
  
                      }
              }
  </code></pre>
  
  <p>With this code, I am getting testng report with test58 passed sice I have given try catch(i want to do so because i want the test to run even if some assertion fails). But the testng report is not showing which all assertion failed. <code>Assert.assertTrue(BottomTable1.contains(Stocklist),Stocklist+ "Stock Exchange Not Found");</code></p>
  
  <p>I want to print the failed assertions in testng report. Please help me out</p>