Search code examples
csvloggingjmeterbeanshell

How can I disable writing BeanShell log row in JMeter report (summary.csv file)?


I have some JMeter script with BeanShell Sampler:

BeanShell Sampler

After run we can see BeanShell Sampler log in 'summary.csv':

BeanShell Sampler log

How can I disable writing of BeanShell Sampler log into 'summary.csv'?


Solution

  • Just add at end of sampler:

    SampleResult.setIgnore();
    

    See:

    Note that for performance reasons, it is much better to use JSR223 Sampler and Groovy instead of Beanshell Sampler, see:

    If you're looking to learn jmeter correctly, this book will help you.