Highlighted
Absent Member.
Absent Member.
238 views

Issue in handling upload functionality using RADUAG File Upload Handler

The Upload Functionality of a specific application is being developed by using a File Upload Handler where the below kind of request is generated in the LoadRunner VuGen scripting.

The Problem here is there is no path present in the below request from where the document is being uploaded. When clarified with Dev Team, they provided information as this handler reads the file & uploads automatically by providing all required details like "RadUAG_guid", XML request etc. But, for each file size, the # of web_custom_request functions present are varying and hence i am unsure how to proceed with this script.

Note: If any dynamic values within a function in script, it can be well handled using Correlation. But, if the # of custom_requests itself changing dynamically based on our input - how this can be achieved.

Can anyone help if you had come across this similar kind of issue!


web_submit_data("FileUploadHandler.ashx",
"Action={URL}/FileUploadHandler.ashx",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/html",
"Referer={URL}/VDocs.UX.Documents.xap",
"Snapshot=t21.inf",
"Mode=HTML",
ITEMDATA,
"Name=0_RadUAG_fileName", "Value=Tutorial.pdf", ENDITEM,
"Name=0_RadUAG_position", "Value=0", ENDITEM,
"Name=0_RadUAG_newFileRequest", "Value=True", ENDITEM,
"Name=0_RadUAG_finalFileRequest", "Value=False", ENDITEM,
"Name=file0", "Value=0", "File=Yes", ENDITEM,
"Name=RadUAG_targetFolder", "Value=", ENDITEM,
"Name=RadUAG_targetPhysicalFolder", "Value=", ENDITEM,
"Name=RadUAG_overwriteExistingFiles", "Value=True", ENDITEM,
"Name=RadUAG_guid", "Value=e7a80627-95d7-438d-85f8-421c0be62148", ENDITEM,
"Name=Operation", "Value=ADDNEW", ENDITEM,
"Name=DocumentId", "Value=F220E40BFD4B4C008D9F627AFED7CA54", ENDITEM,
"Name=RequestXML", "Value=\r\n \r\n \r\n InternalDocs\r\n InternalDocs\r\n \r\n \r\n Tutorial\r\n I\r\n Internal\r\n EV\r\n Evidence\r\n \r\n "
"\r\n \r\n \r\n 0\r\n 7852284\r\n 1.000\r\n SO\r\n abcde\r\n false\r\n true\r\n true\r\n \r\n \r\n
\r\n
\r\n
", ENDITEM,
"Name=0_RadUAG_finalUploadRequest", "Value=False", ENDITEM,
LAST);

web_custom_request("FileUploadHandler.ashx_2",
"URL={URL}/FileUploadHandler.ashx",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer={URL}/VDocs.UX.Documents.xap",
"Snapshot=t22.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------bbe1e5d4-338e-46b9-8be0-699bcadb78a1",
LAST);
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

Re: Issue in handling upload functionality using RADUAG File Upload Handler

Facing the same issue. Has anyone found a solution for the above problem?

Spoiler
 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.