1 package test.tmp; 2 3 import org.testng.annotations.BeforeMethod; 4 5 public class Base { 6 @BeforeMethod bm()7 public void bm() { 8 System.out.println("Thread" + Thread.currentThread().getId()); 9 } 10 }