请求超时测试 [英] Request Timeout Testing

查看:231
本文介绍了请求超时测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友



我已经返回了一些调用外部API的代码。一段时间我的http请求会超时,会发生什么。(并非总是如此)。我修改了我的代码并在我的代码中处理了TimeOutException。现在我想测试这段代码。



如何通过使用一些http请求手动生成它来测试这个超时异常,这肯定会超时。





提前致谢。

解决方案

如果你可以在这里输入你的代码..

Hello Friends

I have return some code that calls external API. What happens some time my http request gets time out.(not always). I modified my code and handled the TimeOutException in my code. Now I want to test this code.

How can test this timeout exception by generating it manually using some http request which surely get time out.


Thanks in advance.

解决方案

If you can enter your code here..


这篇关于请求超时测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆