如何在运行时基于条件停止jmeter? [英] How to stop jmeter during runtime based on coditions?

查看:601
本文介绍了如何在运行时基于条件停止jmeter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的条件逻辑为假,我想停止jmeter,假设如果我的条件之一失败了,那么我需要在运行时立即停止所有线程(jmeter),这样就可以通过它停止运行时间代码不是手动生成的(采样错误后无法采取措施)

I wanted to stop jmeter if my conditional logic is false,suppose if one of my conditions gets failed then i need to stop immediately all my threads(jmeter) during run time,so that is there any way stop it running time through code not manually(not thru action to be taken after a sampler error)

谢谢, 提前

推荐答案

为您提供2种选择:

  1. 如果可以在If Controller中表达您的条件,请使用标准的测试操作停止测试的组件
  2. 如果您想在响应时间或错误率增加一些阈值时停止测试,请使用自定义
  1. If your condition can be expressed in If Controller, then use standard Test Action Component to stop test
  2. If you want to stop test when response time or error rate increases some threshod, then use custom AutoStop Component

这篇关于如何在运行时基于条件停止jmeter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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