In correlation(web_reg_save_param) function,i need to
display the last but one value(n-1) value if the boundary
values keeps on changing.
For example :
At the time of recording,the n value is 3 and
at the time of playback, the n value is 4.
then how can i display the n-1 value

Answer Posted / ravichandra

Step 1: Use "ORD = ALL" in web_reg_save_param() function to capturae all the values.
In the response of the request "param_count" will let you know how many values are captured in an array.

Step 2: Get the n-1 value by using lr_eval_string("{param_count_n-1}")

Step3: Save the value using lr_save_string() function.

Example :
If param_count = 10 in step1
Then
Write lr_eval_string("{param_count_9));

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of function generate and insert by the vugen to the script when you record a script?

690


Why do you create parameter?

543


What is a ramp up and how it can be set?

647


What is the latest version and language used in load runner?

644


What are the vuser components in loadrunner?

706






What is loadrunner api function?

606


What are the three sections of a vuser script and what is the purpose of each one?

581


How does loadrunner execute a performance scenario?

647


What are the four selection methods when choosing data from a data file?

738


What is vuser-end section?

652


How to create a scenario?

630


How can you set the number of vusers in loadrunner?

590


What are the section contain by the vugen while creating a vuser script?

613


What is extended log?

644


What is the vuser in the scenario?

619