Skip to main content

lr advance param Function in Loadrunner with Example

This function is not recorded during recording. We manually insert this function whenever there is a need of it. lr_advance_param works depends upon the settings we give in parameter list (ctrl+L). lr_advance_param is like update value on each occurrence. Whenever we want to update a parameter value in the same iteration we use lr_advance_param.

For example when we want to use two parameters Google and Bing in one Iteration. Usually the Vugen takes the first value google and if we want to use the second value in the same iteration we use update value on each occurrence in the parameter settings. We can do the same using lr_advance_param function.


I have set following settings in Parameter

Select Next Row: Sequential
Update value on: Each Iteration

If we want to take the next value in the pramater list we use lr_advance_param as shown below.

Parameter Name: DomainName

Vugen Script:

web_url("Google Home Page",
"URL=http://www.{DomainName}.com",            Here the parameter value is google.

web_url("Google Home Page",
"URL=http://www.{DomainName}.com",          Here also the parameter value is google.

lr_advance_param("DomainName");               We are using lr_advance_param here. so it will take bing now.

web_url("Bing Home Page",
"URL=http://www.{DomainName}.com",        So Here the parameter value is Bing.

return 0;


Starting iteration 1.
Starting action Action.
web_url("Google Home Page") started                 [MsgId: MMSG-26355]
Redirecting "" (redirection depth is 0)  [MsgId: MMSG-26694]
To location ""    Found resource "" in HTML ""
web_url("Google Home Page") was successful, 12754 body bytes, 1993 header bytes

web_url("Google Home Page") started                 [MsgId: MMSG-26355]
Redirecting "" (redirection depth is 0)  [MsgId: MMSG-26694]
To location ""
Resource "" is in the cache already and will not be downloaded again
web_url("Google Home Page") was successful, 10928 body bytes, 1324 header bytes

Action.c(19): web_url("Bing Home Page") started            [MsgId: MMSG-26355]
Action.c(19): web_url("Bing Home Page") was successful, 13968 body bytes, 1130 header bytes
Ending action Action.
Ending iteration 1.


  1. Thanks, very helpful

  2. please give me even more brief explanation


Post a Comment

Popular posts from this blog

File operations in loadrunner with examples

In this post I will explain how to capture a value from server response and save to a text file using vugen. How to capture and save to text file using loadrunner: First I have recorded the script using and then i searched for IBM. We will get 10 results. I have captured all the 10 values and saved to a file. Here is the code for that.

NeoLoad Interview Questions and Answers

Here are some of the interview questions and answers on NeoLoad: What is NeoLoad? NeoLoad is a performance testing tool designed to test different types of web, standalone and mobile applications. What is the difference between Loadrunner, JMeter and NeoLoad? Click here for differences What are the different counters you monitor in NeoLoad? Average Response Time(requests), average response time(pages), average requests/s, average throughput, current response time(requests), current response time(pages), current requests, current throughput, current users count, controller cpu load, controller memory load etc. What are the different type of tools you can integrate with NeoLoad? App Dynamics, CA APM Integration, Dyna trace integration, HP ALM or Quality Center Integration, Java and Jamo Solutions M-eux Test Integration, Jenkins Integration, perfecto mobile integration, selenium integration. What are the different type of Operating systems you can mon

LR Functions with Examples | Loadrunner Functions with Examples

LR Functions in Loadrunner with Examples. lr_abort Stops the script execution. lr_advance_param It will take the next value in the parameter list. lr_continue_on_error Continue on error even if the request is failed. lr_convert_string_encoding Converts a string to a UTF 8 or Unicode. lr_db_dataset_action Validates database contents by setting checkpoints. lr_db_connect Connects to a database. lr_db_dataset_action Performs an action on a dataset. lr_db_disconnect Disconnects from a database. lr_db_executeSQLStatement Submits an SQL statement to a database. lr_checkpoint Validates the value of a parameter against an expected value (checkpoint). lr_db_getValue Retrieves a value from a dataset. lr_debug_message Sends a debug message to the LoadRunner output or Application Management agent log file. lr_decrypt Decrypts an encoded string. lr_disable_ip_spoofing Disables IP Spoofing. lr_enable_ip_spoofing Enables IP Spoofing. lr_end_sub_transaction Marks the end of a sub-tr