Gulshan
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/dgoQ4ZQYe80J.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Thanks
Gulshan
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/vJ3YZxGtokYJ.
<listeners> |
<listener class-name="com.example.MyListener" /> |
<listener class-name="com.example.MyMethodInterceptor" /> |
</listeners> |
public
class Suite { @BeforeSuitepublic void beforeSuite(){
System.out.println("Before Suite - " + getClassName());
}
@AfterSuite
public void AfterSuite(){
System.out.println("After Suite - " + getClassName());
}
public String getClassName() {
final StackTraceElement[] ste = Thread.currentThread().getStackTrace();
return ste[2].toString().substring(0, ste[2].toString().indexOf("."));
}
}
Regards,
Fakrudeen