while recording select one value from drop...

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

S

SP Manjunath

Guest
while recording select one value from drop down.during run time i want to select the diff values from same drop down(assume it contains 5 values under drop down or list box).how we will do .is need to customize the script with correlation or parameterization
 
If the value is appearing in the request you can parameterize it.
 
Correlation is used when you are taking the value from previous response. But if you want to input different data values during run time you need to use parameterization. Example if you are passing different user id.
 
No coding is required. If you are using load runner then in google find out how to do parameterization in Load Runner.
 
1. Use correlation to capture all the drop down values, web_reg_save_param ("DropDownValues", "LB= value=\"", "RB=\"", "Ord=All", LAST); In the above code change the LB & RB accordingly to capture the drop down values. With ordinance set to all, the above code creates an array with name DropDownValues which has all the drop down values, which can be accessed like DropDownValues_1, DropDownValues_2, .... DropDownValues_N 2. Once you capture all drop down values, use lr_paramarr_random function to get the random value from the DropDownValues array and you can save it in a variable. DDValue = lr_paramarr_random(DropDownValues) 3. Replace the recorded drop down value with DDValue.
 
Veeresh can u pls write same in sequence of steps