[Webtest] How to determine the name of a downloaded file
Marc Guillemot <firstname.lastname@example.org>
Tue, 08 Jul 2008 11:21:07 +0200
there is no simple way to do that currently. It seems to me that an
additional step or a built-in property would be needed.
What about following solutions:
- WebTest could set a dynamic property named for instance
"wt.lastResult.fileName" that holds the name used to save the last response.
- we could add a new step like <storeLastReponseName property="..."/>
Roger Waldner wrote:
> I have the following szenario which I would like to implement in
> - navigate to a download page
> - download a binary file (and let it save somewhere)
> - go to some other pages in my webapplication
> - upload the previously downloaded file
> Now, to upload the previously downloaded file, I need the name under
> which it was saved. How can I undoubtedly find out the name of this
> downloaded file?
> I know that I can prefix the name for the name of the downloaded file,
> but the rest of the file is still unpredictable (namely due to the usage
> of a unique number not known at download time).
> Thanks and best regards
> WebTest mailing list