LoadRunner Common functions

Source: Internet
Author: User

LoadRunner function ******************************************************************************* LR Function:lr_start_transaction

marking the start of a transaction for profiling

lr_end_transaction

mark the end of a transaction for profiling

lr_rendezvous

set the collection point in the VUser script

Lr_think_time

pausing execution between commands in a VUser script
lr_end_sub_transaction
mark the end of a child transaction for performance analysis
lr_end_transaction
marking the end of a LoadRunner transaction
lr_end_transaction ("trans1", Lr_auto);
lr_end_transaction_instance
to mark the end of a transactional instance for performance analysis
Lr_fail_trans_with_error
sets the state of the open transaction to Lr_fail and sends an error message
lr_get_trans_instance_duration
gets the duration of the transaction instance (specified by its handle)
Lr_get_trans_instance_wasted_time
gets the time wasted by the transaction instance (specified by its handle)
lr_get_transaction_duration
gets the duration of the transaction, by the name of the transaction
Lr_get_transaction_think_time
get the think time of a transaction (by the name of the transaction)
Lr_get_transaction_wasted_time
gets the time wasted by the transaction (by the name of the transaction)
lr_resume_transaction
continue to collect transactional data for performance analysis
lr_resume_transaction_instance
continue to collect transactional instance data for performance analysis
Lr_set_transaction_instance_status
set the state of a transaction instance
Lr_set_transaction_status
set the state of open transactions
Lr_set_transaction_status_by_name
set the state of a transaction
lr_start_sub_transaction
marking the start of a child transaction
lr_start_transaction
mark the start of a transaction
lr_start_transaction ("trans1");
lr_start_transaction_instance
starts a nested transaction (specified by the handle of its parent transaction)
lr_stop_transaction
Stop collection of transactional data
lr_stop_transaction_instance
Stop a transaction (specified by its handle) data collection
Lr_wasted_time
eliminate all wasted time on open transactions
lr_get_attrib_double
retrieving the double type variable used in the script command line
Lr_get_attrib_long
retrieving a long type variable used in the script command line
lr_get_attrib_string
retrieving strings used in the script command line
Lr_user_data_point
record user-defined data examples
Lr_whoami
returns information about the VUser script to the VUser script
Lr_get_host_name
returns the host name of the execution VUser script
Lr_get_master_host_name
returns the name of the computer running the LoadRunner Controller
lr_eval_string
Replace the parameter with the current value of the parameter
lr_save_string
saves a NULL-terminated string to a parameter
Lr_save_var
to save a variable length string to a parameter
Lr_save_datetime
saves the current date and time to the parameter
LR _advance_param
advance to the next available parameter
LR _decrypt
decrypting an encoded string
Lr_eval_string_ext
retrieves a pointer to a buffer that contains parameter data
Lr_eval_string_ext_free
releasing a pointer assigned by Lr_eval_string_ext
lr_save_searched_string
searches the buffer for a string instance and saves a portion of the buffer to the argument relative to the string instance
Lr_debug_message
Send debug information to the Output window
Lr_error_message
sending an error message to the Output window
Lr_get_debug_message
retrieving the current message class
Lr_log_message
send a message to a log file
Lr_output_message
send a message to the Output window
Lr_set_debug_message
set Debug Message Classes
Lr_vuser_status_message
generates formatted output and writes it to the Controllervuser status area
Lr_message
send a message to the VUser log and Output window
Lr_load_dll
loading external DLLs
lr_peek_events
indicates where the VUser script execution can be paused
Lr_think_time
pauses the execution of the script to simulate the think time (the time the actual user pauses between actions for thought)
Lr_continue_on_error
specifying methods for handling Errors
lr_continue_on_error (0); Lr_continue_on_error (1);
lr_rendezvous
set the collection point in the VUser script
Te_wait_cursor
The wait cursor appears at the specified location in the terminal window
te_wait_silent
waits for the client application to be in a silent state for a specified number of seconds
Te_wait_sync
wait for system to return from X-system or input forbidden mode
Te_wait_text
wait for the string to appear at the specified location
te_wait_sync_transaction
record the time the system has maintained in the most recent X system mode

List of web functions:
Web_custom_request
Allows you to create custom HTTP requests using any method supported by HTTP
Web_image
Simulates a mouse click on a defined image
Web_link
Simulates a mouse click on a defined text link
Web_submit_data
Perform an "unconditional" or "no context" form
Web_submit_form
Submit a demo form
Web_url
Loads the URL specified by the URL property
Web_set_certificate
Make vuser use specific certificates that are listed in the Internet Explorer registry
Web_set_certificate_ex
Specify location and format information for certificates and key files
Web_set_user
Specify the login string and password for the Web server for the zone where the user is authenticated on the Web server
Web_cache_cleanup
Clear the contents of the Cache emulator
Web_find
Search within an HTML page for a specified text string
Web_global_verification
Search for text strings in all subsequent HTTP requests
Web_image_check
Verifies that the specified image exists in the HTML page
Web_reg_find
Registering a search for a text string in an HTML source or in a raw buffer in a later HTTP request
Web_disable_keep_alive
disabling keep-alive HTTP connections
Web_enable_keep_alive
Enable Keep-alive HTTP Connection
Web_set_connections_limit
Set VUser the maximum number of connections that can be opened at the same time when the script is run
Web_concurrent_end
Mark the end of a concurrent group
Web_concurrent_start
Mark the start of a concurrent group
Web_add_cookie
Add a new cookie or modify an existing cookie
Web_cleanup_cookies
Delete all cookies currently stored by VUser
Web_remove_cookie
Delete the specified Cookie
Web_create_html_param
Saves dynamic information on an HTML page to a parameter. (LR 6.5 and earlier)
Web_create_html_param_ex
Creates parameters based on dynamic information contained within an HTML page (using embedded boundaries) (LR 6.5 and earlier).
Web_reg_save_param
Create parameters based on dynamic information contained within an HTML page (without embedding boundaries)
Web_set_max_html_param_len
Sets the maximum length of dynamic HTML information that has been retrieved
Web_add_filter
Set criteria to include or exclude URLs when downloading
Web_add_auto_filter
Set criteria to include or exclude URLs when downloading
Web_remove_auto_filter
To disable filtering of downloaded content
Web_add_auto_header
Add a custom header to all subsequent HTTP requests
Web_add_header
Add a custom header to the next HTTP request
Web_cleanup_auto_headers
Stop adding a custom header to a subsequent HTTP request
Web_remove_auto_header
Stop adding a specific header to a subsequent HTTP request
Web_revert_auto_header
Stop adding a specific header to a subsequent HTTP request, but generate a hidden header
Web_save_header
To save the request and response headers to a variable
Web_set_proxy
Specifies that all subsequent HTTP requests are directed to the specified proxy server
Web_set_proxy_bypass
Specifies the list of servers that VUser direct access (that is, not accessed through the specified proxy server)
Web_set_proxy_bypass_local
Specifies whether VUser should bypass the proxy server for local (Intranet) addresses
Web_set_secure_proxy
Specifies that all subsequent HTTP requests are directed to the server
Web_set_max_retries
To set the maximum number of retries for an action step
Web_set_timeout
Specifies the maximum time VUser waits for a specified task to be executed
Web_convert_param
Convert HTML parameters to URLs or plain text
Web_get_int_property
Returns specific information about the previous HTTP request
Web_report_data_point
Specify a data point and add it to the test results
Web_set_option
Set WEB options in the encoding, redirection, and download areas of non-HTML resources
Web_set_sockets_option
Set options for sockets

LoadRunner Common functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.