lr.vuser_status_message
Sends a message to the Vuser status area.
C#
void lr.vuser_status_message( string message );
VB.NET
Sub lr.vuser_status_message( ByVal message As String )
| Message Functions |
Arguments
| Name | Comments |
|---|---|
| message | The message to send to the output window. |
The lr.vuser_status_message function sends a string to the Status area of the Controller. It also sends the string to the Vuser log. When run from VuGen, the message is sent to output.txt.
Return Values
No value returned.Parameterization
Standard parameterization is not available for this function.
Example
The following example issues a Vuser status message if the login failed.
public int login(string username, string password)
{
//emulate failed login
return lr.FAIL;
}
int status = login("username","password");
if (status == lr.FAIL) {
string strOutputMsg="Error: Unable to login to server";
lr.vuser_status_message(strOutputMsg);
}

