测试-----java接口自动化测试

想要努力的老阿姨 2020-02-28 04:31:06
看视频学习接口自动化
报下面错误,但是测试用例都运行成功

java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at org.testng.remote.strprotocol.JsonMessageSender.sendMessage(JsonMessageSender.java:41)
at org.testng.remote.strprotocol.MessageHub.sendMessage(MessageHub.java:43)
at org.testng.remote.AbstractRemoteTestNG$RemoteSuiteListener.onFinish(AbstractRemoteTestNG.java:192)
at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:202)
at org.testng.SuiteRunner.run(SuiteRunner.java:257)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)


数据也能回写成功




...全文
49 点赞 收藏 1
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
https://blog.csdn.net/qq_34049124/article/details/86078924 已经找到的解决方法
回复
相关推荐
发帖
其他
创建于2009-10-09

222

社区成员

其他产品/厂家
申请成为版主
帖子事件
创建了帖子
2020-02-28 04:31
社区公告
暂无公告