自定义类继承监听器适配器 :public class TestNGListener extends TestListenerAdapter{}
执行结果:
onStart.... Base beforeClass ChildCase beforeClass onTestStart... t1 Running... onTestStart... t2 Running... onTestStart... t3 Running...