Professional Documents
Culture Documents
Transaction Functions:
3. lr_end_transaction_instance --> Marks the end of a transaction instance for performance analysis.
4. lr_fail_trans_with_error --> Sets the status of open transactions to LR_FAIL and sends an error message.
5. lr_get_trans_instance_duration --> Gets the duration of a transaction instance specified by its handle.
6. lr_get_trans_instance_wasted_time --> Gets the wasted time of a transaction instance by its handle.
10. lr_resume_transaction --> Resumes collecting transaction data for performance analysis.
11. lr_resume_transaction_instance --> Resumes collecting transaction instance data for performance analysis.
17. lr_start_transaction_instance --> Starts a nested transaction specified by its parent’s handle.
19. lr_stop_transaction_instance --> Stops collecting data for a transaction specified by its handle.
20. lr_wasted_time --> Removes wasted time from all open transactions.
1. lr_get_attrib_double --> Retrieves a double type variable used on the script command line.
2. lr_get_attrib_long --> Retrieves a long type variable used on the script command line.
Informational Functions:
2. lr_whoami --> Returns information about a Vuser to the Vuser script. Not applicable for Application Management.
3. lr_get_host_name --> Returns the name of the host executing the Vuser script.
4. lr_get_master_host_name --> Returns the name of the machine running the LoadRunner Controller or Tuning Console. Not applicable for Application Management.
String Functions:
9. lr_save_searched_string --> Searches for an occurrence of string in a buffer and saves a portion of the buffer, relative to the string occurrence, to a parameter.
Message Functions:
1. lr_debug_message --> Sends a debug message to the Output window or the Business Process Monitor log files.
2. lr_error_message --> Sends an error message to the Output window or the Business Process Monitor log files.
5. lr_output_message --> Sends a message to the Output window or the Business Process Monitor log files.
7. lr_vuser_status_message --> Generates and prints formatted output to the Controller or Console Vuser status area. Not applicable for Application Management.
8. lr_message --> Sends a message to the Vuser log and Output window or the Business Process Monitor log files.
Run-Time Functions
3. lr_think_time --> Pauses script execution to emulate think time—the time a real user pauses to think between actions.