51Testing软件测试论坛
标题:
回放出现错误很邪门,
[打印本页]
作者:
devil_xxg
时间:
2008-4-18 11:42
标题:
回放出现错误很邪门,
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;
}
大虾指点
作者:
rickyzhu
时间:
2008-4-18 13:09
这什么邪门?
你是哪行脚本报这个错误,肯定是那个函数写错了参数呗,自己找找帮助看看,F1就可以看到帮助
Error: Must have -usr option. [MsgId: MERR-10794]
缺少一个参数-usr
作者:
devil_xxg
时间:
2008-4-18 15:18
没找到
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2