简体   繁体   English

Jmeter,BeanShell 采样器和总结报告

[英]Jmeter, BeanShell Sampler and Summary Report

  • Thread Group线程组
    • BeanShell Sampler (calcuate parameter and put in user defined variable) BeanShell Sampler(计算参数并放入用户定义的变量)
    • Loop环形
      • Java Sampler (with parameters). Java采样器(带参数)。

Inside the Summary Report I see that the BeanShell Sampler are listed, and I don't want this as it affects the final average throughput;在摘要报告中,我看到列出了 BeanShell 采样器,我不希望这样,因为它会影响最终的平均吞吐量; how can this be remedied?如何补救? Is there a substitute object?有没有替代品 object? I noticed that if I put in a BeanSell Pre Processor it gets called every time a Java sampler is run, which I don't want (tell me if I'm wrong).我注意到,如果我放入一个 BeanSell 预处理器,它会在每次运行 Java 采样器时被调用,这是我不想要的(如果我错了,请告诉我)。

You can invoke the following function anywhere in your Beanshell Sampler:您可以在 Beanshell 采样器的任何位置调用以下 function:

SampleResult.setIgnore();

More information: SampleResult.setIgnore() JavaDoc更多信息: SampleResult.setIgnore() JavaDoc

Also be aware that starting from JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting as Groovy has much better performance comparing to Beanshell, see Apache Groovy - Why and How You Should Use It for details. Also be aware that starting from JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting as Groovy has much better performance comparing to Beanshell, see Apache Groovy - Why and How You Should Use It for details.

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM