Use the standard *BeanShell* commands: cat(); *cd*(); cp(); mv(); rm(); *dir
*();; You can call external commands as exec("command");

Thanks
Chaitanya M Bhatt
http://www.performancecompetence.com

On Fri, Oct 21, 2011 at 6:38 AM, Morten Kristiansen <[email protected]
> wrote:

> Hi,
>
> I want to create a JMeter test that executes a HTTP Request POST with a
> file
> attached to it. So far so good (I know how to do that). But my files are in
> a directory and I don't know the filenames or how many files. So what I
> need
> is to  prior to the HTTP Request, look into a given directory and get a
> list
> of all files in that directory. Then I want to loop over these files and
> execute a HTTP Request for each of them.
>
> I have googled for 2 hours and can't find a single example on how to
> acheive
> this. Can anyone help?
>
> Thanks,
>
> Morten
>

Reply via email to