TestNg の @AfterTest アノテーションでテスト ケースのステータスを取得する方法。@AfterTest でテスト ケースが成功または失敗した場合、いくつかのアクションを実行する必要があります。
@AfterTest(alwaysRun=true)
public void teardown(ITestContext test) throws Exception {
String testcase = test.getCurrentXmlTest().getParameter("id");
}