LR检查点问题(找到问题了)
做了一个测试接口的页面,想检查返回结果是否正确。LR录制代码如下:
#include "web_api.h"
Action()
{
web_url("insertcoupon.jsp",
"URL=http://192.168.20.200/webabb/insertcoupon.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("insertresult.jsp",
"Snapshot=t2.inf",
ITEMDATA,
"Name=orderId", "Value=20060915", ENDITEM,
"Name=userId", "Value=0", ENDITEM,
"Name=name", "Value=cheryl", ENDITEM,
"Name=status", "Value=0", ENDITEM,
"Name=item1", "Value=9001", ENDITEM,
"Name=amount1", "Value=1", ENDITEM,
"Name=item2", "Value=9002", ENDITEM,
"Name=amount2", "Value=1", ENDITEM,
"Name=item3", "Value=9003", ENDITEM,
"Name=amount3", "Value=1", ENDITEM,
"Name=item4", "Value=9004", ENDITEM,
"Name=amount4", "Value=1", ENDITEM,
"Name=item5", "Value=9005", ENDITEM,
"Name=amount5", "Value=1", ENDITEM,
"Name=item6", "Value=9006", ENDITEM,
"Name=amount6", "Value=1", ENDITEM,
"Name=item7", "Value=9007", ENDITEM,
"Name=amount7", "Value=1", ENDITEM,
"Name=btnSubmit", "Value=提交", ENDITEM,
LAST);
/*
* 插入检查点
*/
web_find("web_find",
"What=ret code 0 ret msg insert coupon succeed ",
LAST);
return 0;
}
但是运行的时候提示:
Action.c(48): Verification checks not enabled. web_find is skipped. See the 'Run-time settings/Preferences/Checks'
Action.c(48): web_find was successful
页面提示的结果已经不是“ret code 0 ret msg insert coupon succeed ”
我在'Run-time settings'中的已经选择了“Enable ContentCheck during replay”了。
问题在于:
Run-time Settings--internet Protocol--Preferences 中的选项没有选择 Enable Image and text check。sdlkfj1
[ 本帖最后由 cheryl 于 2006-9-15 16:35 编辑 ] 哈哈。 嘿嘿,我也发现类似的问题了,谢谢楼主帮我解决了哈!! 怎么解决也不说下。。。 Run-time Settings--internet Protocol--Preferences 中的选项没有选择 Enable Image and text check。这里要选上检查点才会生效 。。。。。。
页:
[1]