lr.group_name
Returns the Vuser's group name.
C#
string lr.group_name();
VB.NET
Function lr.group_name() as String
| Informational Functions |
Arguments
| Name | Comments |
|---|---|
| N/A |
The lr.group_name property returns the group name of the current Vuser.
Return Values
The group name. If no name is available (for example, there are no active Vusers), returns null.
Parameterization
Parameterization is not applicable to this function.
Example
The following example retrieves the group name, checks its validity, and sends it to the output.
string groupname=lr.group_name;
if(groupname==null)
lr.output_message("Failed to get the group name");
else
lr.output_message("Group Name = " + groupname);

