Highlighted
Absent Member.. Absent Member..
Absent Member..
519 views

VuGen Scripting: Unable to upload file during script replay

protocol used: web http/html

Attached: Ouput File of the script after replay

problem: script was unable to upload the file during replay even all correlations have been applied correctly;

 

 

web_submit_data("ajaxupload1",
        "Action=http://jeugene/secured/spotlight.ajaxupload1:upload/ajaxupload1",
        "Method=POST",
        "EncType=multipart/form-data",
        "TargetFrame=",
        "RecContentType=application/json",
        "Referer=http://jeugene/secured/spotlight",
        "Snapshot=t7.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=t:formdata", "Value={upload_formdata1}", ENDITEM,
        "Name=t:formdata", "Value={upload_formdata2}", ENDITEM,
        "Name=ajaxupload1", "Value=C:\\Temp\\PDI_CreditAgreement.doc", "File=yes", ENDITEM,
        LAST);

    web_submit_data("ajaxupload1_2",
        "Action=http://jeugene/secured/spotlight.ajaxupload1:upload/ajaxupload1",
        "Method=POST",
        "EncType=multipart/form-data",
        "TargetFrame=",
        "RecContentType=application/json",
        "Referer=http://jeugene/secured/spotlight",
        "Snapshot=t8.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=t:formdata", "Value={upload_formdata1}", ENDITEM,
        "Name=t:formdata", "Value={upload_formdata2}", ENDITEM,
        "Name=ajaxupload1", "Value=C:\\Temp\\PDI_CreditAgreement.doc", "File=yes", ENDITEM,
        LAST);

/*Correlation comment - Do not change!  Original value='13aa538755dda7' Name ='submit_token' Type ='Manual'*/
    web_reg_save_param_ex(
        "ParamName=submit_token",
        "LB=form1_",
        "RB='><input value",
        SEARCH_FILTERS,
        "Scope=Body",
        "IgnoreRedirections=No",
        LAST);

/*Correlation comment - Do not change!  Original value='RteoX9yoy5Yzy4+CgkJl1PbX5fY=:H4sIAAAAAAAAAJWQvUoDQRSFrwtCIJ0g/iFYaLtJiEtEG4MgCEGExTrcnbluJszujDN3TWxS+RI2PoFY6ROksPMdfAAbCysLs9FCDIi25x7ud/huX2B+sAHrnkThSNZia1irtMe72MdhYbVB2QDvIDIuDdGi6FHIaMmzu4xCYRxplYQJegrbySREwYeKtNyMiQu7dTquPi8+vgcw14GqMDk7o48xI4aFTh8vsKYxT2sxO5Wne0PLsPqN2200EaPmTiuKpMTWn3a2/7vzxBlB3sdFkinvlcnHd3L77O3mKQAY2sEaLM8yfVnmErf/K06YzJqccvbh9D/P0q7j15WH+6uDAIIOVIRWk/aRPIfR1BhpyiZBaWwalYaWPuk/5HTrDJWvS/0DCvibQdYBAAA=' Name ='submit_formdata' Type ='Manual'*/
    web_reg_save_param_ex(
        "ParamName=submit_formdata",
        "LB=input value='",
        "RB=' name",
        SEARCH_FILTERS,
        "Scope=Body",
        "IgnoreRedirections=No",
        LAST);

    web_submit_data("spotlight.ajaxupload1:fileuploaded", 
        "Action=http://jeugene/secured/spotlight.ajaxupload1:fileuploaded", 
        "Method=POST", 
        "TargetFrame=", 
        "RecContentType=application/json", 
        "Referer=http://jeugene/secured/spotlight", 
        "Snapshot=t9.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=t:zoneid", "Value=uploadZone1", ENDITEM, 
        LAST);

    web_submit_data("spotlight.ajaxupload1:fileuploaded_2", 
        "Action=http://jeugene/secured/spotlight.ajaxupload1:fileuploaded", 
        "Method=POST", 
        "TargetFrame=", 
        "RecContentType=application/json", 
        "Referer=http://jeugene/secured/spotlight", 
        "Snapshot=t10.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=t:zoneid", "Value=uploadZone1", ENDITEM, 
        LAST);

 

0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

Re: VuGen Scripting: Unable to upload file during script replay

Hi,

It seems like a correlation problem. More exactly, not all the correlations are performed.

I would suggest to do an another recording and compare the client requests.

Also, try to look for any warning or erros in the server logs.

LR R&D
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.