0

I have few VuGen scripts that use Web/HTTP protocol using javascript. I am using VuGen 12.53 (patch 4). I have a login.js action that is common to all my scripts. Whenever there is a change to the login action, I have to make udpates to all the scripts. Instead I want to keep login in a common location and share the single action/function across all scripts.

I was able to achieve this using lr.loadLibrary() function when I replay on my local machine. I want to be able to do this when I run my scripts via HP Performance Center (all my scripts are saved on ALM). When I tried using the same lr.loadLibrary() function and run through perf center, I get the error that the file is not found.

Can someone please help me to figure out how to achieve this?

I have found this Loadrunner - share common action between scripts, but it is for C. I need it for javascript.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199

1 Answers1

0

Its an old post. Just sharing if anyone needs help with this yet.

If LG Agent is running as process, then the logged in user should have access to the shared path where the library is located. If its running as service, then ensure the shared path has given access to the local system account of each LG machine.

(You can see advance sharing option for the shared folder where you can add the LG host name, that will add the LG's system/service account. Then in the LG, go to services->LoadRunner agent service->Properties->LogOn->Allow Service to interact with desktop). The restart the agent service. With this setting LG's can access the shared drive paths while still running as Service.

J Jena
  • 51
  • 3
  • Thank you for the suggestion @jjena. I use AWS loadgens that are spun up on demand. Since the LGs are not static (always on), I wouldn't be able to do this. – Prashanth Tilleti Feb 05 '20 at 15:26