简体   繁体   English

Jmeter postProcessor将在所有http请求完成后仅执行一次

[英]Jmeter postProcessor to be executed only once after all the http requests are complete

在此处输入图片说明

here the postRequest http request executes in a loop, but i want the post processor to execute only after all the http request loop is complete. 在这里,postRequest http请求在一个循环中执行,但是我希望后处理器仅在所有http请求循环完成后才执行。 How to do that 怎么做

JMeter PostProcessors obey Scoping Rules , in your setup JSR223 PostProcessor will be executed after each sampler in your Test Plan. JMeter PostProcessors遵守范围规则 ,在您的设置中JSR223 PostProcessor将在测试计划中的每个采样器之后执行。

So if you want to get a message in the log file once HTTP Request loop is finished - convert the JSR223 PostProcessor into JSR223 Sampler . 因此,如果要在HTTP Request循环完成后在日志文件中获取消息,请将JSR223 PostProcessor转换为JSR223 Sampler

If you don't want the JSR223 Sampler to appear in your Test Results - add the next line to it: 如果您不希望JSR223采样器出现在测试结果中,请在其下添加下一行:

SampleResult.setIgnore()  

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不是在jmeter中执行所有样本 - All samples are not executed in jmeter 在另一个HTTP请求成功之后,Jmeter触发了HTTP请求。 有条件的并发请求 - Jmeter trigger http request after another http request is succesful. Concurrent requests with condition 测试套件设置方法是针对每个测试执行一次,还是仅针对所有测试执行一次? - Is the test suite setup method executed once for each test, or only once for all? jmeter Beanshell PostProcessor删除标头引发异常 - jmeter Beanshell PostProcessor remove header throws exception JMeter JSR223 后处理器 GET COOKIE - JMeter JSR223 PostProcessor GET COOKIE 生成在 JMeter 中只出现一次的随机数 - Generate random numbers that only occur once in JMeter 一旦通过Jmeter中的beanshall预处理器java脚本登录ssh主机,如何执行以下请求 - How to execute below requests once ssh host logged through beanshall pre processor java script in Jmeter 仅用于测试 REST 请求的 http 站点? - http-only site to test REST requests? 如何在Selenium IDE中完成所有ajax请求? - How to wait until all ajax requests are complete in Selenium IDE? Jmeter,使用jsr223 postProcessor将数据写入文件(如果存在) - Jmeter, over writing data to file if it exists using jsr223 postProcessor
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM