The method setHTTPFiles accepts an array hence method not found
https://jmeter.apache.org/api/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.html


HTTPFileArg fileArg = new HTTPFileArg();
fileArg.setPath("d:/data.csv");
HTTPFileArg[] arr = new HTTPFileArg[1];
arr[0]=fileArg;
s.setHTTPFiles(arr);

As before though , for doing something like this you are better off with a
pre processor..(if needed)

On Sat, Sep 13, 2014 at 4:04 AM, bobMeliev <[email protected]> wrote:

> Here is code: http://paste.ubuntu.com/8333869/
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-to-send-file-with-Beanshell-tp5721025p5721038.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]
>
>

Reply via email to