Thanks - Counted the lines and passed as property to the threadgroup controller and that worked fine but I wanted to make the script do this job. I'll try the CSV Dataset.
Thanks ever so much for all your quick responses - can't beat this! Cheers Ash -----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 6:41 PM To: JMeter Users List Subject: Re: Threadgroup Loop Count You might be able to pass a variable to a nested loop controller; I've not tried it. Otherwise, count the lines before starting the test, and pass the count as a property. If you are counting the lines in order to stop the test when the file has been read to EOF, why not use the CSV Dataset Config element and set the "Stop thread on EOF?" option? On 28/11/2007, Musuvathy, Ashok <[EMAIL PROTECTED]> wrote: > I'm trying to set the threadgroup loop count based on the number of > lines in a file that gets passed as an argument (-Jinput_file=xyz.dat). > Tried a beanshell pre-processor for this but I guess it doesn't get > processed before the threadgroup node. > > Could someone suggest a way of achieving this ? > > Rgds > Ash > --------------------------------------------------------------------- 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]

