I have multiple VuGen scripts that utilize the Web/HTTP protocol with javascript. Currently, I am using VuGen 12.53 (patch 4) and have a common login.js action in all of my scripts. Whenever I need to make changes to the login action, I have to update every script individually. Instead, I would like to store the login function in a central location and share it across all scripts.
I successfully accomplished this using the lr.loadLibrary() function when replaying on my local machine. However, when attempting to run the scripts via HP Performance Center (where they are saved on ALM), I encountered an error stating that the file could not be found when using the same lr.loadLibrary() function.
Can anyone provide assistance on how to resolve this issue and achieve sharing common actions across scripts?
I came across this resource Loadrunner - share common action between scripts, but it pertains to C language and I require a solution for javascript.