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

How will you handle the situation in scripting where for your mailbox you have to select any one mail randomly to read?

882


What is the advantage of running vuser as a process than a thread?

871


What is think time?

758


What is the difference between web_reg_find and web_find?

1096


What are the advantages of load runner?

797


What is the load runner testing process?

805


What component of loadrunner is used to record a script?

779


In a web server, database and network are all working fine and now, where could be the problem?

792


What is the difference between hits/second and requests/second?

756


What is the difference between performance testing and performance engineering?

811


what are the skip functions in Load Runner?

1999


For what purpose, user will be using ‘continue on’ error?

768


What kind of problem we can face regarding hardware, software, network and memory bottleneck during the performance test?

877


How will you divide your script into multiple actions? Why?

981


How do you identify which values need to be correlated in the script? Give an example.

732