TestNG 中获得测试方法的名称
TestNG 中获得测试方法的名称在基于TestNG的测试中,有时候需要获得测试方法的名称,所以就需要得到 测试方法名方法如下代码:public class TestCheers { @BeforeMethod public void testStart(Method method) { System.out.println(">>>>>>>>>>>>>>>>>>>>