java - @AfterMethod is called twice in onConfigurationSuccess Method. Bug in TestNG? -


i have listener class, implements iresultlistener. in class implement onconfigurationsuccess method, todo after test method. @aftermethod annotated method called twice after same test method. check console output:

public void onconfigurationsuccess(itestresult itr) {     if (itr.getmethod().isaftermethodconfiguration()) {         system.out.println("aftermethod: " + itr.getmethod().getmethodname());         object[] parameters = itr.getparameters();         itestresult originalresult = (itestresult) parameters[0];         system.out.println("testmethod: " + originalresult.getmethod().getmethodname());     } } 

does has same problem? have 1 @aftermethod method , testmethod runs 1 time. bug in testng?

i used testng version 6.3.1 , problem appears here. in actual version 6.5.2 works fine.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -