On 14 September 2010 07:29, SanderW <[email protected]> wrote: > > > sebb-2-2 wrote: >> >> >> Otherwise, I think the only way to do this is to use a BeanShell or >> BSF PostProcessor or Listener. >> > > I agree, but I couldn't find a good example to work with. > > I tried BeanShell PostProcessor in the ForEach Controller but it didn't > write any lines to the log or file. > Same with the BeanShell Listener. A simple test that I tried was: > output = vars.get("OUT"); > log.info(output); > > But no lines were showing up in the jmeter.log
That's because there was no sampler under the ForEach Controller. JMeter only runs Pre- and Post-Processors, Timers, Listeners etc. if there is a sampler to which they can be applied. Note: you don't need a ForEach Controller with BeanShell - just loop around the variables in the code. > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Write-variables-to-a-file-without-showing-them-in-Results-Tree-tp2837757p2838667.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

