Re: Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found (1138 Views)
Reply
Valued Contributor
drenze
Posts: 74
Registered: ‎01-05-2012
Message 1 of 6 (1,194 Views)
Accepted Solution

Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found

OK...I'm feeling like a dummy here.

 

I'm using a FireFox TruClient script developed in Vugen 11.51 on a BPM 9.22 probe for BSM 9.22. I moved my login function to a function in a function library, because of the fact that this login sequence is used for multiple applications. Everything runs fine from Vugen.

 

When I deploy it to BPM 9.22 via BSM 9.22, I get the following error: "Call function xxx.login failed - library named 'xxx' could not be located..."

 

My assumption would have been that when I export 'runtime files' to the zip, a copy of the function library would have been included, but obviously not. So how do I either:

  • Force the library to be included with the script, or
  • Load the required library (-ies) onto the BPM?

Here's a copy of the log from the BPM:

[MsgId: MMSG-204696]  
16/08/2013 09:23:21 Please refer to the ReadMe file in the LoadRunner installation directory for notes about measurements and logging [MsgId: MMSG-204671]  
16/08/2013 09:23:21 [MsgId: MMSG-205200]  
16/08/2013 09:23:21 t=00001209ms: TruClient engine version 11.51.3392.0 has been loaded [MsgId: MMSG-205200] [MsgId: MMSG-205200]  
16/08/2013 09:23:21 t=00001631ms: Error -205177: Exception in Library.getLibXmlDoc, ex=APIError: File_Not_Found Snapshot Info [MSH 0 1] [MsgId: MERR-205177] [MsgId: MERR-205177]  
16/08/2013 09:23:21 t=00000006ms: ** 1: Evaluate JavaScript code LR.evalC('decryptEncrypt...esTab = false } ** started [MsgId: MMSG-204251] [MsgId: MMSG-204251]  
16/08/2013 09:23:21 Notify: Parameter Substitution: parameter "encryptedPassword" = "..." [MsgId: MMSG-13992]  
16/08/2013 09:23:21 Notify: Saving Parameter "decryptedPassword = ...". [MsgId: MMSG-13798]  
16/08/2013 09:23:21 t=00000050ms: The "decryptEncryptedPassword" C function returned 0 [MsgId: MMSG-205200] [MsgId: MMSG-205200]  
16/08/2013 09:23:21 t=00000364ms: ** 1: Evaluate JavaScript code LR.evalC('decryptEncrypt...esTab = false } ** successfully completed [MsgId: MMSG-204250] [MsgId: MMSG-204250]  
16/08/2013 09:23:21 t=00000366ms: ** 2: Call Function FunctionLibrary.login ** started [MsgId: MMSG-204251] [MsgId: MMSG-204251]  
16/08/2013 09:23:21 t=00000366ms: Error -203252: ** 2: Call Function FunctionLibrary.login ** failed - library named 'FunctionLibrary' could not be located Snapshot Info [MSH 0 1] [MsgId: MERR-203252] [MsgId: MERR-203252]  
16/08/2013 09:23:21 Error: Failed to end Transaction "AC_LOGIN" (by name). Please check that you made a call to start transaction operation. [MsgId: MERR-16985]  
16/08/2013 09:23:22 Ending action vuser_init. [MsgId: MMSG-205051]  
16/08/2013 09:23:22 Action was aborted. [MsgId: MMSG-10694]  
16/08/2013 09:23:22 Vuser 0 (thread 2560), ended OK." [MsgId: MMSG-10695]  

 

I'm sure there's a simple answer to this, but I haven't been able to find it. If you're able to provide an answer, a link or pointer to the reference would be much appreciated.

 

Thanks.

HP Expert
Dmitry Shevchenko
Posts: 4,881
Registered: ‎01-30-2008
Message 2 of 6 (1,167 Views)

Re: Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found

Did you try to add your external files to the script through File > Add Files to Script... menu in VuGen before exporting the script files into .zip?

Valued Contributor
drenze
Posts: 74
Registered: ‎01-05-2012
Message 3 of 6 (1,153 Views)

Re: Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found

I did not, but that did the trick. However: when I imported a shared library, the shared library could not be accessed (did not have necessary permissions - the user that the BPM is running as does not have access to the location where the shared library is stored). I assume that either I must use a local function library or let the user ID have access to the shared library location?

 

Thanks.

HP Expert
Dmitry Shevchenko
Posts: 4,881
Registered: ‎01-30-2008
Message 4 of 6 (1,149 Views)

Re: Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found

Yes, simply give necessary permissions to the folder where the library is located.

Valued Contributor
drenze
Posts: 74
Registered: ‎01-05-2012
Message 5 of 6 (1,142 Views)

Re: Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found

So...when you use a shared Function Library, does it grab a local copy? The reason I'm asking is that one or two of my probes are remote from the repository over slow connections. I want to make sure that I'm not introducing that dependency into my script.

 

Thanks again.

HP Expert
Dmitry Shevchenko
Posts: 4,881
Registered: ‎01-30-2008
Message 6 of 6 (1,138 Views)

Re: Vugen 11.51 Firefox TruClient + BPM 9.22 in BSM = Library Not Found

When you add a file to your script in VuGen it's zipped up with the rest of the script files. That .zip file gets uploaded into BSM, and BPM will download and unzip it on the BPM machine in specific folder. So your file will be located with all the other script files in the same script folder.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.