title: How to get testcase status in @Aftertest in testng
body: <p>How i can get test case status in @AfterTest annotation of TestNg. I need to take some actions if test cases pass or fail in @AfterTest. </p>
  
  <pre><code>@AfterTest(alwaysRun=true)
  public void teardown(ITestContext test) throws Exception {
  
    String testcase = test.getCurrentXmlTest().getParameter("id");
  } 
  </code></pre>