Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Load Runner Parameterisation Problem

$
0
0

Hi Guys,

 

I have an application where I am selecting year as a filter(List Item). All the elements on my application are objects.

 

When I select 2011(list item/element), first value from the below values is getting populated in the javascript code of that particular object. ID Method used is JavaScript

 

evalXPath("/html/body/div[8]/div/div/div[1]/div[1]"); ------>for 2011
evalXPath("/html/body/div[8]/div/div/div[1]/div[2]"); ------>for 2012
evalXPath("/html/body/div[8]/div/div/div[1]/div[3]"); ------>for 2013

 

I am unable to parameterise 1,2,3 in above javascrpt code.

 

Tried creating a parameter P_Year with values as 1,2,3 and replacing it in code as below

 

year=LR.getParam('P_Year')

 

evalXPath("/html/body/div[8]/div/div/div[1]/div[year]");

 

But it dint work. Need your help on how to parameterise.

 

I know how to paraterise when it is in Value field. But failing when I try to parameterise any value, if it is the code as above.

 

Thanks in advance.

 

Protocol Used: Ajax Truclient on LR11.52, Firefox version

 

 


Viewing all articles
Browse latest Browse all 12134

Trending Articles



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