Upload file

93 views
Skip to first unread message

kiran kumar reddy

unread,
Sep 15, 2011, 3:22:59 AM9/15/11
to LoadRunner
In my application on one screen i need to upload a document.So while
recording business flow i upload a document (from desktop) and
completed script.When running the script, below error is occurred in
log

Error: -26488: Could not obtain information about submitted file "file
path xxxxxxxxxxxxxxxxxxx _stat rc=-1, errno=2 [No such file or
directory]

Please advice me which function i have to use and where i need to
place the file while running the script.And can i upload multiple
files at a time

Thanks,
Kiran

James Pulley

unread,
Sep 15, 2011, 9:25:04 AM9/15/11
to LoadRunner
You potentially have many issues

* Does your file path match to the file location from the location
from which you are executing the virtual user. If not then here is
your issue

* Are many users trying to upload the same file? If so then you can
run into one of two issues
--Lock contention on the file preventing user B from getting access
once user A has an exclusive lock on the file
--A uniqueness constraint on the filename/content/size. You may have
to create new, unique files on the fly for upload. IF you need to do
this consider the use of a RAM drive for the actual creation and
management of the files. Be sure and delete the file at the end of
each iteration as well.

* Do you have a unique ID that is associated with your file upload.
IF so, you will need to address this in the appropriate fashion for
your file to upload

James Pulley, http://www.loadrunnerbythehour.com/PricingMatrix

Vivek

unread,
Sep 15, 2011, 11:43:22 PM9/15/11
to lr-loa...@googlegroups.com
Yes you can upload multiple files simultaneosuly as long as you don't forget to parametrize the file path that is being selected for upload. Create as many parameters as you want, and select unique for occurence, and you should be good to go.
 
You're gonna have to include a code at the end of the script that deletes the file you just uploaded, in case if you wish to use the same file for every upload.



--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Brenda

unread,
Sep 16, 2011, 4:05:35 AM9/16/11
to LoadRunner
The file you want to upload need to be put into your LR script folder.
Otherwist, LR cannot find it.

Kamran Khan

unread,
Aug 30, 2012, 1:50:08 AM8/30/12
to lr-loa...@googlegroups.com
This means the file was not available to Performance Center
Performance Center be able to access it if you refer file at an absolute path. This path should be value for generators as well and the file should be available there too.


Sincerely,
Kamran Khan
Principal/Lead, SQA & Test Automation
BSCS Hons., MBA, Certified HP PC, LR, QTP & CCNA




On Tue, Aug 28, 2012 at 7:26 PM, Malar <malarvi...@gmail.com> wrote:
Hi,
 
When I attach the PDF file in script folder then from vugen it can able to upload the files. But when I execute the same in Performance center it is failing with the below mentioned error.
 
Error -26488: Could not obtain information about submitted file "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\Performance Center Host\scripts\Sample_script\Aug16_004.pdf": _stat32 rc=-1, errno=2 [No such file or directory]. Using an empty file
 
Thanks,
Malar.

--
Reply all
Reply to author
Forward
0 new messages