lr.get_attrib_string
Returns a string type value of a parameter passed to the script run.
JavaScript
function lr.get_attrib_string( parameter )
VBScript
Function lr.get_attrib_string( parameter )
Example: Command Line Argument Functions | Command Line Parsing Functions |
Arguments
Name | Comments |
---|---|
argument | The name of a command line argument whose value is a string. |
The lr.get_attrib_string function returns the value of an argument that was passed to the run of the script. You place the argument name in the function's argument field and lr.get_attrib_string returns the string values associated with that argument. For example, lr.get_attrib_string("ipv6") returns the IPv6 address of the current Vuser.
Return Values
Returns the value of the command line parameter as a string. If the parameter is empty (for example a flag), returns an empty string. If the parameter does not exist, returns NULL.
Parameterization
Standard parameterization is not available for this function.