f = new FileOutputStream("C:\\Report\\results.txt"); will always recreate the file. you need to open it in append mode. You also need to synchronize access (since multiple threads might access at the same time) . You also have scoped the bean shell processors to the thread group so they execute everytime a sampler runs - probably not what you want.
So one way is , write a Java program with a synchronized method that buffers say N entries at a time and writes them to file. Synchronization has its own problem , it will slow down your test. The other way is write each value using sample_variables configuration into the Jmeter result and post process the values at the end of the run -- View this message in context: http://jmeter.512774.n5.nabble.com/Custom-Reporting-Print-variables-to-file-tp4738621p4739150.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org