Foreach needs variables named with a prefix like Folder_1 Folder_2 Folder_3
The post-processor mentioned in the docs is regex extractor because its setup to generate variables of this naming format. You need is to setup these variables. I've done something similar without using the foreach and just using csv and threads. So instead of a loop switching folders in your example, simply each thread works on a different folder. The threadcount is defined by a property I set which says how many 'folders' I want to process. There is a csv element reading in the folder simply followed by the actions. In your example, you could use 1 thread, set loop to 'forever', and have the recycling set to false, and stop thread set to true in CSVdata... Then your test will simply stop once its finished reading the file. That's probably the simplest approach. Otherwise you need to setup some sort of method to create all the variables with the proper name format, and then loop through them. That would be two loops vs simply having one loop (the thread) running multiple times. -Steve -----Original Message----- From: efj [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 6:41 AM To: [email protected] Subject: Simple csv data iteration for all threads Hi, I'm struggling to work out how to achieve the following. All running threads complete a loop 10 times. In the loop is a "browse to folder x" action. After all the threads and loops have completed for folder x , the whole thing is started again for folder y and so on. So would be 10 threads loop 10 times on folder x Then 10 threads loop 10 times on folder y etc I think this can be achieved with CSV data config and/or a ForEach Controller. However I'm not sure how especially as it looks like the ForEach controller needs a post processing sampler. So far I have... -Thread Group setup with 10 threads (RU 10, Loop 10). --CSV Data Config (variable name 'path') --Post Processor??? --ForEach Controller ----Loop (10 times) -------All threads to complete a "browse to folder x" action Do I need to add a post processor and if so how do i tie it into the CSV variable name? Any help or examples appreciated. -- View this message in context: http://www.nabble.com/Simple-csv-data-iteration-for-all-threads-tp171018 28p17101828.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]

