loadrunner Hi, Need some help on sharepoint scripting:...

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

N

Nidhi Akhouri

Guest
Hi, Need some help on sharepoint scripting: There is a scenario where a .mpp file gets downloaded to local machine, need to do some editing and save back to sharepoint server. Since- edting is being done locally and on client which doesnt get recorded in vugen.. Please share information if you have . Is this a doable scenario in LR? Thanks
 
Don't over-complicate it. Basically you have a file download and file upload. The rest of the steps are client-side as you say. They would not be sent over the wire. LR can easily handle the file up/down.
 
Thanks. Could you little more detail , how to manage download. I could see just one function : web_get_int_property.
 
What do you mean by "manage download"? I think you'll find that in your replay and recording logs you will have a request for a resource in one of your "web_*" functions. If you can't find it, then try recording again. When you record, put a comment right before you click the link to the file. Then put another after it. Chances are you can find the file that way.
 
Downloading and uploading can be recorded by VUGen, but editing must not be recorded. Since it is not a browser activity. You have the only option that is maintain static .mpp file, each time you have to upload the same file. I have a question too. Is .mpp file an ASCII file or Binary file? If ASCII file you can edit, save and upload in an easy way , otherwise you have to write lot of custom code.
 
Pull out the request which submits data back to server. Its payload or body will have text that's being submitted back. Modify it using parametrization and submit it back to the server. Done! Alternatively, if path is getting specified to upload a file, its logical and only solution to change the file yourself and pass it in request to upload...also you can place multiple file, do parametrization of the path from where file is picked to upload each file in a new iteration.