如何用jmeter计数失败的请求 [英] How to count failed requests with jmeter

查看:535
本文介绍了如何用jmeter计数失败的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行JMeter,我希望统计所有失败的请求,这些请求要么超时,要么只是普通失败.我看到一些侦听器表明存在失败,但是没有一个侦听器看到一个显示失败请求与成功请求总数的字段.有谁知道我可以轻松地获取这些数据而不必手动计算每个失败?

I am running JMeter and I want a count of all the failed requests that either timed out, or, just plain failed. I see that some of the listeners show that there have been failures, but none see to have a field that displays the total number of failed requests versus successful requests. Does anyone know how I can easily get this data without having to count each failure by hand?

推荐答案

  • 向您的采样器添加超时

    • Add timeout to your sampler

      在代码和响应内容上添加断言

      Add assertions on code and response content

      使用汇总报告

      您应该拥有这些数字

      这篇关于如何用jmeter计数失败的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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