Sunday, 15 September 2013

How to get testcase status in @Aftertest in testng

How to get testcase status in @Aftertest in testng

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.
@AfterTest(alwaysRun=true)
public void teardown(ITestContext test) throws Exception {
String testcase = test.getCurrentXmlTest().getParameter("id");
}

No comments:

Post a Comment