title: Extent report shows only last test case result
body: <p>Extent report version - 3.0
  Language - Java and TestNG classes</p>
  
  <p>I have a class - ExtentManager.java</p>
  
  <pre><code>    package framewrk;
  
  import com.aventstack.extentreports.ExtentReports;
  import com.aventstack.extentreports.ExtentTest;
  import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
  
  public class ExtentManager {
  
      private static ExtentReports extent;
      private static ExtentTest test;
      private static ExtentHtmlReporter htmlReporter;
      private static String filePath = "./extentreport.html";
  
      public static ExtentReports GetExtent(){
          extent = new ExtentReports();
  
          htmlReporter = new ExtentHtmlReporter(filePath);
  
          // make the charts visible on report open
          htmlReporter.config().setChartVisibilityOnOpen(true);
  
          // report title
          String documentTitle = prop.getProperty("documentTitle", "aventstack - Extent");
          htmlReporter.config().setDocumentTitle(documentTitle);
  }
  
      public static ExtentTest createTest(String name, String description){
          test = extent.createTest(name, description);
          return test;
      }
  
      public static ExtentTest createTest(String name){
          test = extent.createTest(name, "");
          return test;
      }
  }
  </code></pre>
  
  <p>and 2 testNG classes as follows
  TC1.java</p>
  
  <pre><code>package framewrk;
  
  import org.testng.annotations.AfterClass;
  import org.testng.annotations.BeforeClass;
  import org.testng.annotations.Test;
  import com.aventstack.extentreports.ExtentReports;
  import com.aventstack.extentreports.ExtentTest;
  import com.aventstack.extentreports.Status;
  
  public class TC1 {
      static ExtentReports extent;
      static ExtentTest test;
  
      @BeforeClass
      public void setup(){
          extent = ExtentManager.GetExtent();
      }
  
      @Test
      public void OpenUT(){
          test = extent.createTest("Testing how fail works");
          test.log(Status.INFO, "fail check started");
          test.fail("Test fail");
      }
  
      @AfterClass
      public void tear()
      {
          extent.flush();
      }
  }
  </code></pre>
  
  <p>TC2.java</p>
  
  <pre><code>package framewrk;
  
  import org.testng.annotations.AfterClass;
  import org.testng.annotations.BeforeClass;
  import org.testng.annotations.Test;
  import com.aventstack.extentreports.ExtentReports;
  import com.aventstack.extentreports.ExtentTest;
  import com.aventstack.extentreports.Status;
  
  public class TC2 {
      static ExtentReports extent;
      static ExtentTest test;
  
      @BeforeClass
      public void setup(){
      extent = ExtentManager.GetExtent();
      }
  
      @Test
      public void OpenUT(){
          test = extent.createTest("Testing how pass works");
          test.log(Status.INFO, "pass check started");
          test.pass("Passed");
      }
  
      @AfterClass
      public void tear()
      {
          extent.flush();
      }
  }
  </code></pre>
  
  <p>If run these 2 test cases, I am getting only last testcase result, for the 1st testcase result, it's not displayed on the extent report.
  Note that there is not append parameter for extent report 3.0.
  How to get all test case results on extent report?</p>
  
  <p><a href="https://i.stack.imgur.com/OfkZR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OfkZR.png" alt="Only last test case result shown, how to get all tests results"></a></p>