Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

LR 12.01 TruClient variable is undefined after several iterations

$
0
0

Hi All,

Having a weird issue, hope someone can suggest something.

I am using TruClient IE on LR 12.01. I have variable reading in a parameter for a URL.

     var pURL1=LR.getParam('pURL')

I called the JS variable something different to the LR parameter *incase* there was some scope conlict, also removed any comments from before the declaration step; I also just tried putting in a second delay after declaring the variable before i used it in the load step and still happening.

The script will play through several iterations, of logging into the AUT, doing a search, opening a PDF, then logging out. There is just one value of my URL in my parameter file.

It will run through several iterations perfectly and then give an error saying that the variable that I'm using in the Navigate to step is undefined. (even though it's successfully ran several iterations!). Error log below and screenshot attached.

Has anyone seen anything like this? Or suggest anything?

 

12:04:20: ** 16.4: Select Archive file in option #1 from element (2) listbox ** successfully completed
12:04:20: ** 16: If Search resultexists ** successfully completed
12:04:20: ** 17: Wait 3 seconds ** started
12:04:24: ** 17: Wait 3 seconds ** successfully completed
12:04:24: ** 19: Click on Exit Documents image ** started
12:04:25: ** 19: Click on Exit Documents image ** successfully completed
12:04:25: ** 20: Verify Login's "Visible Text" contains "Login" ** started
12:04:25: ** 20: Verify Login's "Visible Text" contains "Login" ** successfully completed
12:04:26: ** 1: Evaluate JavaScript code var pURL=LR.getParam('pURL') ** started
12:04:26: ** 1: Evaluate JavaScript code var pURL=LR.getParam('pURL') ** successfully completed
12:04:27: ** 2: Navigate to pURL ** started
12:04:27: ** 2: Navigate to [Exception] ** failed - an argument is invalid:
'Location': JavaScript exception 'ReferenceError: 'pURL' is undefined' during evaluation

 

Thanks,
Brian.


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>