1.导错了包:@Test时import的是@org.testng.annotations.Test 所以会报错
解决方法:改为import org.junit.Test;
2.Test类中为空的方法,如果整个工程都是空的,那就最好不要再设置任何注解
1.导错了包:@Test时import的是@org.testng.annotations.Test 所以会报错
解决方法:改为import org.junit.Test;
2.Test类中为空的方法,如果整个工程都是空的,那就最好不要再设置任何注解