Hey James,
Thanks a ton for your kind reply.
I tried doing it but no luck as I'm not a programmer (just a basic
knowledge of programming). But from your suggestion what I did is :
1. I parameterized the file path C:\\\\Anand\\\\horse.jpg.
2. In that parameter file I mentioned the 100 different type of
documents to be picked up and uploaded by the user.
3. I stored those documents under the directory as mentioned above.
4. The script runs fine for each iteration (meaning different file is
uploaded on each iteration)
I have not taken the test with controller yet. So now the question
is :
As each LG will have the local copy of the script, would each VUser
pick up the file to upload from the controller..?
I seek your healthy reply on this.
Thanks again.
Anand Rao
On Jul 19, 6:06 pm, James Pulley <
loadrunner-li...@jamespulley.com>
wrote:
> Using your programming skills create a file of random name and random
> length (within your defined bounds) within your virtual user
> subdirectory. Upload This file. Then, as part of cleanup, delete
> the file. You will no longer have to worry then about location for
> the file
>
> "Name=userImage", "Value=random_name.ext",
> "File=Yes",
>
> And you will no longer have to worry about pre-staging files in a
> directory which is commonly accessible from your load
> generator(s). It is not recommended that you combine this model
> with anything other than logging when an error occurs as you will be
> introducing extra stress to the file system with the consistent writes
> and deletes. Intelligent disk subsystems recommended, RAID/FCAL
> encouraged on the generators.
>
> See fopen(), fprintf(), rand() for inspiration
>
> James Pulley,
http://www.loadrunnerbythehour.com/PricingMatrix