TestNG call sequence of @AfterMethod and ITestListener#onFailure - by sschuth Does anybody know what is called first if a test fails? Read the article