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类中为空的方法,如果整个工程都是空的,那就最好不要再设置任何注解
上一篇:以流的方式下载文件
下一篇:Hazelcase下载和安装教程
运行测试代码显示以下错误:java.lang.Exception:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M