执行TestNG报java.net.SocketException: Software caused connection abort: socket write error错误

来源:互联网 发布:国际志愿者网络打不开 编辑:程序博客网 时间:2024/06/16 19:24

执行TestNG时提示java.net.SocketException: Software caused connection abort: socket write error错误可能导致的原因是Eclipse在线安装/离线安装的Testng版本过高(我在线安装的TestNG是6.11版本)解决方法为:

1、在Eclipse中卸载TestNG版本(Help--installation Details--选择TestNG--uninstall进行卸载)

2、下载TestNG离线包(TestNG 6.9.8的离线包下载地址 http://pan.baidu.com/s/1pLg8L9x)

3、解压TestNG离线包

4、将解压文件中features中的文件直接拷贝到Eclipse安装目录的features文件夹中

5、将解压文件中plugins中的文件直接拷贝到Eclipse安装目录的plugins文件夹中

6、重启Eclipse

此时,再次执行TestNG将不会提示SocketException错误了。


阅读全文
0 0
原创粉丝点击