|
Error: Must have -usr option. [MsgId: MERR-10794]
脚本:int thinktime1=0;
Action()
{
LPCSTR strUsertype; // Define *str.
strUsertype = lr_get_attrib_string("usertype");
if (strUsertype==NULL)
{
lr_output_message("### Run-time Settings Additional Attribute usertype not specified. Cannot continue.");
lr_abort();
}
else{
lr_message("### Run-time Settings Additional Attribute usertype=\"%s\"", strUsertype );
if( strcmp( strUsertype,"advanced") == 0 )
{
thinktime1=2;
}
else if(strcmp( strUsertype,"immediate") == 0 )
{
thinktime1=4;
}
else if(strcmp( strUsertype,"basic") == 0 )
{
thinktime1=8;
}
else{
lr_error_message("### ERROR: Value not recognized. Aborting run." );
lr_abort();
}
}
return 0;
}
大虾指点
|
|