On 08/05/2009, Jannetta Steyn <[email protected]> wrote:
> Hi Folks
>
>  I'm not sure whether I'm on the right track here to accomplish what I intend
>  to, but any pointers would be welcomed.
>
>  I want to download a file (via HTTP using the HTTP sampler), then I want to
>  save the file and upload it again later in the test.
>
>  I created a HTTP Sampler that seems to succeed in the download. The sampler
>  result says it succeeded and the data in Request seems to be correct.
>  However, nothing is displayed in the Response Data. In this case I tried to
>  download a .xls file, but the file could potentially be anything.
>
>  Can I save this file somewhere and then, how would I go about uploading it
>  again?
>

See:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Save_Responses_to_a_file

Add this as a child of the sampler (so it only saves that file).

You'll have to see what file name it generates and use that, but it
won't change unless the file type changes.

The next release of JMeter will have an option to save the filename in
a variable, which makes it easier.

>  Kind Regards and thank you for any help.
>  Jannetta
>
>
>  --
>
>  ===================================
>  Web site: http://www.jannetta.com
>  Email: [email protected]
>  ===================================
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to