How to correlate from the server request?

Hi there,
I am testing a java script application and it has function to attach a document and then upload it to the server. I want to correlate the value from EncType but the value is from the Server request. The web_reg_save_param seems only works on the server response. I tried run the script without the correlation either on the html mode or URL but it returned "the internal error". The below is the recorded script.

web_custom_request("lsw_create_attach_to_filesystem_new2.jsp_3", "URL=">sd1capssy08:7011/.../lsw_create_attach_to_filesystem_new2.jsp,
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=">xxxxxxx08:7011/.../lsw_create_attach_to_filesystem_new2.jsp",
"Snapshot=t20.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------7d919f32c04b4",
"BodyBinary=-----------------------------7d919f32c04b4\r\nContent-Disposition: form-data; name=\"FILENAME\"; filename=\"Z:\\x5CDoc1.doc\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----------------------------7d919f32c04b4\r\nContent-Disposition: form-data; name=\"TITLE_FILE\"\r\n\r\nDoc1.doc\r\n------"
"-----------------------7d919f32c04b4\r\nContent-Disposition: form-data; name=\"Attach\"\r\n\r\nAttach File\r\n-----------------------------7d919f32c04b4--\r\n", LAST);
Parents
  • Since you are attaching the file for upload on the client there is no way to capture the data with your script. After you record the script you will not execute the client side code again so it will not be available during playback anyway.

    You might want to try and record the script in URL mode without web_custom_requests to see if that is easier to deal with.

    If you want to use different files you could record with different file attachments and use multiple header files to contain the data and randomly select the filename and binary data during playback. It is cumbersome but should work.

    Alan
Reply
  • Since you are attaching the file for upload on the client there is no way to capture the data with your script. After you record the script you will not execute the client side code again so it will not be available during playback anyway.

    You might want to try and record the script in URL mode without web_custom_requests to see if that is easier to deal with.

    If you want to use different files you could record with different file attachments and use multiple header files to contain the data and randomly select the filename and binary data during playback. It is cumbersome but should work.

    Alan
Children
No Data