This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to import libraries in TruClient protocol

We are trying to capture secrets from AWS secrets manager in loadrunner Web HTTP/HTML and TruClient Protocols. 

For Web HTTP/HTML, we wrote a custom Python script to return the values and executed it by invoking a command window from vugen and the solution is working. 

We tried to do the same for TruClient protocol, by adding functions in C-functions.c. But getting memory violation issue. So in parallel was also exploring JavaScript option. We created a external js file to capture the secrets and to execute this via vugen(TruClient), we need to import global libraries/modules like aws-sdk. 

Please let me know how to import global libraries in LR TruClient protocol and execute the JavaScript by reading an external .js file (similar to what web_js_run() function does). Also wondering if web_js_run() equivalent for TruClient is available to achieve this