background image
<< For example | shows the command line string >>
<< For example | shows the command line string >>

Handling Command Line Arguments

Creating Vuser Scripts
Chapter 4, page 50
Working with VuGen · Enhancing Vuser Scripts
In
Handling Command Line Arguments
You can pass values to a Vuser script at run-time by specifying command line
arguments when you run the script. LoadRunner has three lr_get_attrib_
functions that allow you to read the command line arguments, and then pass the
values into a Vuser script. The following lr_get_attrib_ functions exist:
lr_get_attrib_double
to retrieve double precision floating point type
arguments
lr_get_attrib_long
to retrieve long integer type arguments
lr_get_attrib_string
to retrieve character strings