Add the Aggregate report to the thread group.Which gives you total transaction count and the " Error % ". So that you can know about the number of failed transactions
如果您想知道特定的故障情况,请在请求中添加断言 . 在断言中只提到您要检查的场景 .
汇总报告
断言**
4
要检查失败响应的数量,请执行以下步骤:
1) Add >> Listener >> View result tree >> select the check box of 'Errors' 它只会捕获失败消息的响应但不成功使用此功能可以查看响应消息,详细发送请求![在此输入图像描述] [1]
如果您想了解失败请求的总数和平均时间,请查看以下步骤:
2) Add >> Listener >> Summary Report >> select the check box of 'Errors' 它仅捕获响应失败的请求的摘要报告,而不是成功
3 回答
为您的采样器添加超时
在代码和响应内容上添加断言
使用汇总报告
你应该有这些数字
Add the Aggregate report to the thread group.Which gives you total transaction count and the " Error % ". So that you can know about the number of failed transactions
如果您想知道特定的故障情况,请在请求中添加断言 . 在断言中只提到您要检查的场景 .
汇总报告
断言**
要检查失败响应的数量,请执行以下步骤:
1)
Add >> Listener >> View result tree >> select the check box of 'Errors'
它只会捕获失败消息的响应但不成功使用此功能可以查看响应消息,详细发送请求![在此输入图像描述] [1]如果您想了解失败请求的总数和平均时间,请查看以下步骤:
2)
Add >> Listener >> Summary Report >> select the check box of 'Errors'
它仅捕获响应失败的请求的摘要报告,而不是成功