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

查看:70
本文介绍了如何使用 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天全站免登陆