|
我所做的操作是:向服务器提交一批数据,服务器收到后向前台返回00的值表示成功,页面显示‘成功’,我想针对页面显示的‘成功’做检查点,但运行总是失败。提示:
Action.c(55): Error -27195: "web_find" failed. 0 occurrence(s) of "成功" found (RightOf="", LeftOf="") [MsgId: MERR-27195]
Action.c(55): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
脚本如下:
#include "web_api.h"
Action()
{
lr_think_time(17);
lr_rendezvous("提交");
web_url("btn_bg.gif",
"URL=http://test/images/btn_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://test/trade/interfacetest.jsf",
LAST);
lr_think_time(4);
web_submit_data("interfacetest.jsf_2",
"Action=http://test/trade/interfacetest.jsf",
"Method=POST",
"RecContentType=text/html",
"Referer=http://test/trade/interfacetest.jsf",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=form", "Value=form", ENDITEM,
"Name=bizno", "Value=000000", ENDITEM,
"Name=transkind", "Value=20", ENDITEM,
"Name=applyid", "Value=200804280000000001", ENDITEM,
"Name=transby", "Value=yjdwalp", ENDITEM,
"Name=userStatus", "Value=", ENDITEM,
"Name=transValue", "Value={refer}", ENDITEM,
"Name=transTo", "Value=", ENDITEM,
"Name=frozeId", "Value=", ENDITEM,
"Name=querytransKind", "Value=", ENDITEM,
"Name=fromdate", "Value=", ENDITEM,
"Name=todate", "Value=", ENDITEM,
"Name=querypageSize", "Value=", ENDITEM,
"Name=querypageNo", "Value=", ENDITEM,
"Name=j_id_jsp_1853582469_58", "Value=提 交", ENDITEM,
"Name=code", "Value=", ENDITEM,
"URL=../images/btn_bg.gif", ENDITEM,
LAST);
web_find("web_find",
"What=成功",
LAST);
return 0;
} |
|