I am unclear on what happens under the covers when a file is uploaded to
a web site. From the Generation Log file, it appears that LoadRunner
reads the file(s) at run time, packages them together, and sends them to
the server as an attachment to a single POST request. Is that right?
My issue is that I need to parameterize some values in the files that
get uploaded. Any idea of how to do that? I could create a large
number of unique files then parameterize the file name in the
web_submit_data, but that is a pain.
Better still, would be if there is a way simply generate a string in
memory them pass it to the POST so that it looks like it is attached as
a multipart/form-data.
This is my captured/modified web_submit_data statement.
web_submit_data("File Uploader",
"Action=http://xyz.com",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Mode=HTML",
ITEMDATA,
"Name=file0", "Value=C:\\temp\\CustomerOrder.dat", "File=Yes",
ENDITEM,
"Name=file1", "Value=", "File=Yes", ENDITEM,
"Name=file2", "Value=", "File=Yes", ENDITEM,
"Name=file3", "Value=", "File=Yes", ENDITEM,
LAST);
[Non-text portions of this message have been removed]