You are on page 1of 51

2/10/12

Lr Functions

Sc ibd Upload a Doc men


Sea ch Book , P e en a ion , Bchine , men Sea Doc Academic ...

E plo e

Doc men
Book - Fic ion Book - Non-fic ion Heal h & Medicine B och e /Ca alog Go e nmen Doc Ho -To G ide /Man al Maga ine /Ne pape Recipe /Men School Wo k + all ca ego ie Fea ed Recen

People
A ho S den Re ea che P bli he Go e nmen & Nonp ofi B ine e M ician A i & De igne Teache + all ca ego ie Mo Follo ed Pop la fella10

Acco n
Vie P blic P ofile M Doc men M Collec ion M Shelf Me age No ifica ion Se ing Help Log O

.scribd.com/doc/39238489/Lr-Functions#open_do nload

1/51

2/10/12

Lr Functions

Page 1 of 337

Command Line Parsing Functions


Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Ut ility Functions: C Language (LR) > Command Line Parsing Functions

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.


Page 2 of 337

Informational Functions
Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Utility Functions: C Language (LR) > Informational Functions

lr_end_timer Stops a timer. 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_vuser_ip Returns the IP address of the current Vuser. Not applicable for

products that do not run Vusers. lr_start_timer Starts a timer. lr_user_data_point Records a user-defined data sample. lr_user_data_point_ex Records a user-defined data sample and enables logging option. 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 enables logging option. lr_whoami Returns information about a Vuser executing the script. Not applicable for products that do not run Vusers.
Page 3 of 337

Message Functions
Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Ut ility Functions: C Language (LR) > Message Functions

lr_debug_message Sends a debug message to the LoadRunner output window or

Application Management agent log file. lr_error_message Sends an error message to the LoadRunner output window or Application Management agent log file. lr_get_debug_message Returns the current message logging settings. lr_log_message Sends a message to the Vuser log file. lr_message Sends a message to the log file and output window. lr_output_message Sends a Vuser message to the log file and output window with location information. lr_set_debug_message Sets a message class for output messages. lr_vuser_status_message Sends a message to the Vuser status area in the LoadRunner Controller.
Page 4 of 337

Run-Time Functions
Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Utility Functions: C Language (LR) > Run- ime Functions

lr_abort Aborts script execution. lr_continue_on_error Specifies an error handling method. lr_disable_ip_spoofing Disables IP Spoofing. lr_enable_ip_spoofing Enables IP Spoofing. lr_exit Exits from the script, action, or iteration. lr_load_dll Loads an external DLL. lr_param_increment Increments the value of a numerical parameter lr_peek_events Checks for events. lr_rende vous Creates a rende vous point in the Vuser script. lr_rende vous_ex Sets a rende vous point in a Vuser script. lr_think_time Pauses execution between commands in a script.
Page of 337

tring and Parameter Functions


.scribd.com/doc/39238489/Lr-Functions#open_do nload 2/51

2/10/12

Lr Functions String and Parameter Functions


Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Utility Functions: C Language (LR) > tring and Parameter Functions

lr_advance_param Advances to the next available value in the parameter data file. lr_checkpoint Validates the value of a parameter against an expected value

(checkpoint).
lr_convert_string_encoding Converts a string to a different encoding. lr_decr pt Decrypts an encoded string. lr_eval_string Returns the string argument after evaluating embedded parameters. 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_next_row Advances to the next row in the parameter data file. lr_param_increment Increments the value of a LoadRunner 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_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.
Page of 337

Transaction Functions
Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Ut ility Functions: C Language (LR) > Transaction Functions

lr_end_sub_transaction Marks the end of a sub-transaction.

lr_end_transaction Marks the end of a transaction. lr_end_transaction_instance Marks the end of a transaction instance. lr_fail_trans_with_error Sets the status of open transactions to LR_FAIL and

sends an error message.


lr_get_trans_instance_duration Returns the duration of a transaction instance

specified by its handle.


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_duration Gets the duration of a transaction by its name. lr_get_transaction_status Gets the current status of a transaction. 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 transaction by its

name.
lr_resume_transaction Resumes collecting transaction data. lr_resume_transaction_instance Resumes collecting transaction instance data. lr_set_transaction Create a transaction manually. 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_b _name Sets the status of a transaction. lr_start_sub_transaction Marks the beginning of a sub-transaction. lr_start_transaction Marks the beginning of a transaction. lr_start_transaction_instance Starts a nested transaction specified by its parent s

handle.
lr_stop_transaction Stops the collection of transaction data. lr_stop_transaction_instance Stops collecting data for a transaction specified by

its handle.
lr_wasted_time Removes wasted time from all open transactions.
Page 7 of 337

atabase Functions
.scribd.com/doc/39238489/Lr-Functions#open_do nload 3/51

2/10/12

Database Functions

Lr Functions

These database functions can only be used with the Web Services protocol. Click one of the following functions for more information:
HP LoadRunner Online Function Reference > Ut ility Functions: C Language (LR) > Database Functions

lr_db_connect Connects to a database. lr_db_disconnect Disconnects from a database. lr_db_executeSQLStatement Submits an S L statement to a database. lr_db_dataset_action Performs an action on a dataset. lr_db_get alue Retrieves a value from a dataset. lr_db_dataset_action Validates database contents by setting checkpoints.
Page of 337

lphabetical Listing

Click one of the following functions for more information:


HP LoadRunner Online Function Reference > Utility Functions: C Language (LR) > Alp abetical Listing

lr_abort Aborts script execution. lr_advance_param Advances to the next available value in the parameter

data file.

lr_continue_on_error Specifies an error handling method. lr_convert_string_encoding Converts a string to a different encoding. 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 S L statement to a database. lr_checkpoint Validates the value of a parameter against an expected

value (checkpoint). lr_db_get alue 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-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.
Page of 337

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.

.scribd.com/doc/39238489/Lr-Functions#open_do nload

4/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

5/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

6/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

7/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

8/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

9/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

10/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

11/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

12/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

13/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

14/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

15/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

16/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

17/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

18/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

19/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

20/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

21/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

22/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

23/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

24/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

25/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

26/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

27/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

28/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

29/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

30/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

31/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

32/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

33/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

34/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

35/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

36/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

37/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

38/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

39/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

40/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

41/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

42/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

43/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

44/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

45/51

2/10/12

Lr Functions

.scribd.com/doc/39238489/Lr-Functions#open_do nload

46/51

2/10/12

Lr Functions

L F nc ion
Download this Document for FreePrintMobileCollectionsReport Document This is a private document.

Info and Ra ing


Kuchi Nagabhushanam
Like One like. Sign Up to see what our friends like.

Sec ion
show all prev | next Command Line Parsing Functions Informational Functions Message Functions Run-Time Functions String and Parameter Functions Transaction Functions Database Functions Alphabetical Listing lr_abort

Sha e & Embed Rela ed Doc men


PreviousNext

1. 3 p.

.scribd.com/doc/39238489/Lr-Functions#open_do nload

47/51

2/10/12

Lr Functions

22 .

3 .

2. 28 .

7 .

13 .

3. 1 .

1 .

3 .

4. 2 .

4 .

.scribd.com/doc/39238489/Lr-Functions#open_do nload

48/51

2/10/12

Lr Functions

1 p.

5. 29 p.

29 p.

11 p.

6. 24 p.

3 p.

4 p.

Mo e f om hi
PreviousNe t

1. 25 p.

1 p.
.scribd.com/doc/39238489/Lr-Functions#open_do nload 49/51

2/10/12

Lr Functions

84 p.

2. 1 p.

19 p.

59 p.

Recen Readca e

Add a Commen

S bmi

Cha ac e : 400

.scribd.com/doc/39238489/Lr-Functions#open_do nload

50/51

2/10/12

Lr Functions

Upload a Document
Sea ch Book , P e en a ion , B ine , Academic ... Search Documents

Follow Us! scribd.com/scribd twitter.com/scribd facebook.com/scribd About Press Blog Partners Scribd 101 Web Stuff Support FAQ Developers / API Jobs Terms Copyright Privacy Copyright Language: English 2012 Scribd Inc.

.scribd.com/doc/39238489/Lr-Functions#open_do nload

51/51

You might also like