G'day, Dave's answer is nice and simple.
Another, more complex alternative, is to write a sampler that counts the rows in the file and returns the answer as the sampler result. Then turn the result into a JMeter variable with a regular expression parser or similar. Then use the value of the variable to control the number of loops. The appeal of this approach is that once you have taken the effort to create your own sampler you can use the same basic approach to bring all sorts of outside influences (such as the number of rows in a file) to bear on your JMeter testing. Ian Blavins Contract Performance Engineer Temenos -----Original Message----- From: neetu kulshrestha [mailto:[EMAIL PROTECTED] Sent: 25 April 2007 21:52 To: [email protected] Subject: Is there any way to count the number of rows in a file And use it in the loop count for each thread instaed of giving a hard coded number value. Problem is that the number of values in the inout files may vary based upon the requirement and I don't want ot go and change the thred/loop count each time by hand. Thanks This email (and any attachments) contains confidential information, and is intended only for the named recipient. Distribution or copying of this email by anyone other than the named recipient is prohibited. If you are not the named or intended recipient, please notify TEMENOS or the sender immediately and permanently destroy this email (and any attachments) and all copies of it. No member of TEMENOS Group AG or any of its associated or affiliated companies is liable for any errors or omissions in the content or transmission of this email. Any opinions contained in this email are solely those of the author and, unless clearly indicated otherwise in writing, are not endorsed by any member of TEMENOS Group AG or any of its associated and affiliated companies. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

