java - TestNG console output is different every time for same tests on Intellij -


so i'm running simple test on intellij ce 14.1.4 trying display on console messages, i'm getting different results every time.it's driving me crazy... doesn't happen on eclipse though.here code:

    package testngfiles;         import org.testng.annotations.beforemethod;         import org.testng.annotations.test; public class annot {     @beforemethod     public void useridgeneratio(){         system.out.println("user id generated");     }     @test     public void aopenningbrowser(){         system.out.println("test");     }     @test     public void flightbooking(){         system.out.println("flight booking");     } } 

and here results:

user id generated user id generated flight booking  process finished exit code 0    user id generated test user id generated flight booking  process finished exit code 0     user id generated  process finished exit code 0 

this know issue intellij testng plugin. intellij great tool, plugin substandard. has bugs , doesn't refer recent testng xml schema document. has not been maintained while, wrote that:

http://automatictester.co.uk/2014/03/16/intellij-idea-and-outdated-testng-j-plugin/

you should not rely on testng console output in intellij, in permanent quirks mode. 1 time output here, won't. can't it. live it.


Comments