0% found this document useful (0 votes)
101 views

Load Runner Functions

This document lists various LoadRunner functions that can be used to control transactions, databases, parameters, and web requests. Some key functions include lr_start_transaction to mark the start of a transaction, lr_db_connect to connect to a database, and web_add_header to add headers to HTTP requests.

Uploaded by

Rajeev Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views

Load Runner Functions

This document lists various LoadRunner functions that can be used to control transactions, databases, parameters, and web requests. Some key functions include lr_start_transaction to mark the start of a transaction, lr_db_connect to connect to a database, and web_add_header to add headers to HTTP requests.

Uploaded by

Rajeev Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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_execute
SQLStatementSubmits an SQL statement to a database.
lr_checkpoint
Validates the value of a parameter against an expected value (checkpoint).
lr_db_get
ValueRetrieves 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-transaction.
lr_end_transaction
Marks the end of a LoadRunner transaction.
lr_end_transaction_instance
Marks the end of a transaction instance.
lr_end_timer
Marks the end of a sub-transaction.
lr_error_message
Sends an error message to theLoadRunner output or Application Management agent log file..
lr_eval_string
Replaces a parameter with its current value.
lr_eval_string_ext
Creates a buffer and assigns it the input string after evaluating embedded parameters.
lr_eval_string_ext_free
Frees the buffer allocated by lr_eval_string_ext.
lr_exit
Exits from the script, action, or iteration.
lr_fail_trans_with_error
Sets the status of open transactions to LR_FAIL and sends an error message.
lr_get_attrib_double
Returns the value of a double type command line parameter.
lr_get_attrib_long
Returns the value of a long integer type command line parameter.
lr_get_attrib_string
Returns a command line parameter string.
lr_get_debug_message
Returns the current message logging settings.
lr_get_host_name
Returns the name of the host executing the script.
lr_get_master_host_name
Returns the name of the machine running the LoadRunner Controller.
lr_get_transaction_duration
Gets the duration of a transaction by its name.
lr_get_transaction_status
Gets the current status of a transaction.
lr_get_trans_instance_duration
Returns the duration of a transaction by its name.
lr_get_trans_instance_status
Returns the current status of a transaction instance.
lr_get_trans_instance_think_time
Gets the think time of a transaction instance specified by its handle.
lr_get_trans_instance_wasted_time
Gets the wasted time of a transaction instance by its handle.
lr_get_transaction_think_time
Gets the think time of a transaction by its name.
lr_get_transaction_wasted_time
Gets the wasted time of a LaoadRunner transaction by its name.
lr_get_vuser_ip
Returns the IP address of the current Vuser. Not applicable for products that do not run
Vusers.
lr_load_dll
Loads an external DLL.
lr_log_message
Sends a message to the Vuser log file.
lr_message
Sends a message to the output and log file.
lr_output_message
Sends a message to the output and log file with location information.
lr_next_row
Advances to the next row in the parameter data file.
lr_param_increment
Increments the value of a numerical parameter
lr_param_sprintf
Writes formatted output to a parameter.
lr_param_unique
Generates a unique string and assigns it to a parameter.
lr_paramarr_idx
Returns the value of the parameter at a specified location in a parameter array.
lr_paramarr_len
Returns the number of elements in a parameter array.
lr_paramarr_random
Returns the value of the parameter at a random location in a parameter array
lr_peek_events
Checks for events.
lr_rendezvous
Creates a rendezvous point in the Vuser script.
lr_rendezvous_ex
Sets a rendezvous point in a Vuser script.
lr_resume_transaction
Resumes the collection of transaction data.
lr_resume_transaction_instance
Resumes collecting transaction instance data.
lr_save_datetime
Saves the date and time into a parameter.
lr_save_int
Saves an integer to a parameter.
lr_save_searched_string
Searches for an occurrence of a string in a buffer and saves a portion of the buffer after that
string to a parameter
lr_save_string
Saves a null-terminated string as a parameter.
lr_save_var
Saves a variable length string as a parameter.
lr_set_debug_message
Sets a message class for output messages.
lr_set_transaction
Create a transaction manually.
lr_set_transaction_instance_status
Sets the status of a transaction instance.
lr_set_transaction_instance_status
Sets the status of a transaction instance.
lr_set_transaction_status
Sets the status of open transactions.
lr_set_transaction_status_by_name
Sets the status of a transaction by its name.
lr_start_transaction
Marks the start of a transaction and measures the response time of a transaction
lr_start_transaction_instance
Marks the beginning of a transaction instance
lr_start_sub_transaction
Marks the beginning of a sub-transaction.
lr_stop_transaction
Halts the collection of transaction data.
lr_stop_transaction_instance
Stops collecting data for a transaction instance specified by its handle.
lr_think_time
Pauses execution between commands in a script.
lr_user_data_point
Records a user-defined data sample.
lr_user_data_point_ex
Records a user-defined data sample.
lr_user_data_point_instance
Records a user-defined data sample and correlates it to a transaction instance.
lr_user_data_point_instance_ex
Records a user-defined
data sample and correlates it to a transaction instance.
lr_vuser_status_message
Sends a message to the Vuser status area in the Controller.
lr_wasted_time
Removes wasted time from all open transactions.
lr_whoami
Returns information about a Vuser executing the scrip

web_add_auto_filter
Sets criteria to include or exclude URLs when downloading
web_add_auto_headerAdds a customized header to all subsequent HTTP requests.
web_add_cookieAdds a new cookie or modifies an existing one.
web_add_cookie_exAdds a cookie with specified add behavior.
web_add_filterSets criteria to include or exclude URLs when downloading.
web_add_headerAdds a customized header to the next HTTP request.
web_cache_cleanupCleans the content of the cache simulator.
web_cleanup_auto_headersRemoves all previous customized headers from HTTP requests.
web_cleanup_cookiesRemoves all cookies currently stored by the Vuser.
web_concurrent_endMarks the end of a concurrent group.
web_concurrent_startMarks the beginning of a concurrent group.
web_convert_date_paramConverts a date string stored in a parameter to a different format.
web_convert_from_formattedConverts a string created with one or more data format extensions back to the source format.
web_convert_paramConverts an HTML parameter to a URL or text.
web_convert_to_formattedFormats data using one or more data format extensions.
web_custom_requestAllows you to create a custom HTTP request with any method supported by HTTP.
web_disable_keep_aliveDisables Keep-Alive HTTP connections.
web_dump_cacheSave the Vuser cache to a file.
web_enable_keep_aliveEnables Keep-Alive HTTP connections.
web_findSearches inside an HTML page for a specified text string.
web_get_int_propertyReturns specific information about the previous HTTP request.
web_global_verificationSearches for text string in all subsequent requests.
web_global_verification_pauseSuspends the specified checks set by web_global_verification.
web_global_verification_resumeResumes the specified checks suspended by web_global_pause.
web_imageEmulates a mouse click on the image defined by the attributes.
web_image_checkVerifies the presence of a specified image inside an HTML page.
web_load_cacheLoad the Vuser cache from a file.
web_linkEmulates a mouse click on the link that is defined by the attributes.
web_reg_add_cookieRegisters a search for a text string and adds a cookie if the text is found.
web_reg_cross_step_downloadRegisters a request to continue processing script steps without waiting for the server to
terminate the response.
web_reg_findRegisters a search for a text string for the next Action function.
web_reg_save_paramDeprecated: Use web_reg_save_param_ex orweb_reg_save_param_xpath.Saves dynamic data from an
HTML page to a parameter.
web_reg_save_param_exRegisters a request to save dynamic data located between specified boundaries to a parameter.
web_reg_save_param_regexpRegisters a request to save dynamic data that matches a regular expression to a parameter..
web_reg_save_param_xpathRegisters a request to find dynamic data in an HTML buffer that has been formatted as XML
and save the data to a parameter.
web_remove_auto_filterRemoves a filter on download content.
web_remove_auto_headerStops adding a specific header to subsequent HTTP requests.
web_remove_cookieRemoves the specified cookie.
web_report_data_pointSpecifies a data point and adds it to the test results.
web_revert_auto_headerStops adding a specific header to subsequent HTTP requests, but generates Implicit headers.
web_save_headerSaves request and response headers to a variable.
web_save_param_lengthSaves the length of a parameter.
web_save_timestamp_paramSaves the current timestamp.
web_set_certificateCauses a script to use a specific certificate that is listed in the Internet Explorer registry.
web_set_certificate_exSpecifies location and format information of a certificate and key file.
web_set_max_html_param_lenSets the maximum length of retrieved dynamic HTML information.
web_set_max_retriesSets the maximum number of retries for an Action step.
web_set_optionSets a Web option.
web_set_proxySpecifies that all subsequent HTTP requests be directed to the specified proxy server.
web_set_proxy_bypassSpecifies the list of URLs that scripts access directly, i.e., not via the specified proxy server.
web_set_proxy_bypass_localSpecifies whether or not the proxy server should bypass local addresses.
web_set_secure_proxySpecifies that all secure HTTP requests be directed to the specified secure proxy server.
web_sjis_to_euc_paramConverts an SJIS string to EUC and assigns it to a parameter.
web_set_sockets_optionSets an option for secure sockets.
web_set_timeoutSpecifies the maximum amount of time that a script waits for a specified operation to be performed.
web_set_userSpecifies a login string for a Web server.
web_submit_dataPerforms an "unconditional" or "contextless" form submission.
web_submit_formPerforms a POST request; submits forms.
web_switch_net_layerSpecifies a network layer for replay. (WAP only)
web_urlPerforms a GET request; receives pages or images.

You might also like