Relative Content

Tag Archive for jmeter

How to reuse a file object in jMeter beanshell

I am generating files of 10K to 1 Lakh records in single file by jMeter by using multiple beanshell samplers, file generation is very slow because in each sampler i am creating file with current timestamp and writing data into file and than closing the file.
For faster file writing i want to create single file object in first beanshell sampler and wanted to pass same object in other beanshell sampler to write their data. For this i am creating file object in beanshell sampler and setting file object in jMeter property with following manner and trying to reuse same object in other beanshell to write their data:
File file=new File(CompleteFilePath);
props.put(“file”, file);

JMeter doesn’t run all iterations

I see that Jmeter doesn’t run one iteration on my loop. I count all received messages from test and it indicates on: counter_of_processed 9900. However my run should run 100 users each 100 requests (expected 10 000 messages)