|
本帖最后由 ymwang119 于 2011-11-7 11:25 编辑
这是我录制的脚本,插入了集合点和事务,回放成功,但是插入了文本检查点就会报错
Action.c(1018): Error -27985: There is no context for HTML-based functions. A previous function may not have used "Mode=HTML" or downloaded only non-HTML page(s), or the context has been reset (e.g., due to a GUI-based function) [MsgId: MERR-27985]
Action.c(1018): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
请高手指点,我的脚本有什么问题吗?
脚本如下:
lr_rendezvous("登录集合点");
lr_start_transaction("登录事务");
web_submit_data("login.do",
"Action=http://192.168.0.223/login.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.223/loginForm.do",
"Snapshot=t118.inf",
"Mode=HTTP",
ITEMDATA,
"Name=randId", "Value=a32162fee09720c1", ENDITEM,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
LAST);
lr_end_transaction("登录事务", LR_AUTO);
web_find("web_find",
"What=Account",
LAST); |
|