Quantcast
Viewing all articles
Browse latest Browse all 12134

Re: TC_FF: evalXPath will not evaluate variable inside of for loop

Hi James,

 

Have you tried using ArgsContext.i where i is the variable used in the for loop. 

 

I have made some test in my LoadRunner 12 environments with the following line of code and I do not receive error messages.

 

evalXPath("//td[text()=\""+ArgsContext.i+"\"]");

 

In your case it should be

evalXPath("(//a[text()=\""+ArgsContext.q+"\"])[1]");

if  in the for loop you are using q as an iteration variable.

 

 

Please make sure that you are using only English letters in the function as it can also cause issues.
Please see the following thread

http://h30499.www3.hp.com/t5/LoadRunner-Support-Forum/Truclient-How-to-parameterize-an-Object-Name-Path/m-p/6515394#M9726

 

Please try it and let us know the outcome.

Thank you in advance.

 

Kind regards,

Vesela


Viewing all articles
Browse latest Browse all 12134

Trending Articles



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