AnsweredAssumed Answered

LoadRunner upload time is high when compared to the manual response time

Question asked by vino585 on Mar 15, 2016
We are working on performance testing of Alfresco where the user can upload files (PDF/DOCX etc), download files, Edit offline (Kind of checkout), upload new version (kind of check in new version). Loadrunner is being used as the performance testing tool.

We have an issue here – With a single user, the response times provided by the tool for upload & upload new version transactions are too high when compared to manual response time (taken via stop clock).

For example –
•   Upload of 512 MB PDF file via script is taking 470 seconds at an average whereas while uploading manually via IE or Chrome, we are getting 147 seconds.

1. Can anyone please help here what is going wrong?
2. How the "boundary" is getting generated? Do it has any significance with respect to the response times.

Below is the script that we are using for upload.

web_add_header("Content-Type","multipart/form-data; boundary=———-ei4ae0ae0ei4cH2Ef1cH2Ij5cH2cH2");

   web_submit_data("upload",
      "Action=https://{URL}/share/proxy/alfresco/api/upload",
      "Method=POST",
      "EncType=multipart/form-data",
      "RecContentType=application/json",
      "Referer=https://{URL}/share/page/site/{SiteName}/documentlibrary",
      "Snapshot=t18.inf",
      "Mode=HTML",
      ITEMDATA,
      "Name=filedata", "Value=C:\\Alfresco\\{FileName_512MB}", "File=Yes", ENDITEM,
      "Name=filename", "Value={FileName_10MB}", ENDITEM,
      "Name=destination", "Value=null", ENDITEM,
      "Name=siteId", "Value={SiteName}", ENDITEM,
      "Name=containerId", "Value=documentLibrary", ENDITEM,
      "Name=uploaddirectory", "Value=/", ENDITEM,
      "Name=majorVersion", "Value=false", ENDITEM,
      "Name=username", "Value=null", ENDITEM,
      "Name=overwrite", "Value=false", ENDITEM,
      "Name=thumbnails", "Value=doclib", ENDITEM,
      LAST);
      
      
   
   web_custom_request("activity",
      "URL=https://{URL}/share/proxy/alfresco/slingshot/doclib/activity",
      "Method=POST",
      "Resource=0",
      "RecContentType=application/json",
      "Referer=https://{URL}/share/page/site/{SiteName}/documentlibrary",
      "Snapshot=t19.inf",
      "Mode=HTML",
      "EncType=application/json",
      "Body={\"site\":\"{SiteName}\",\"type\":\"file-added\",\"page\":\"document-details\",\"fileName\":\"{FilenameCorr}\",\"nodeRef\":\"workspace://SpacesStore/{c_noderef}\"}",
      LAST);

Outcomes