这是我录制的脚本,插入了集合点和事务,回放成功,但是插入了文本检查点就会报错
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]
web_link("sign up now",
"Text=sign up now",
"Snapshot=t2.inf",
LAST);
Action.c(8): Warning -26610: HTTP Status-Code=502 (Proxy Error ( 鎷掔粷杩炴帴 )) for "http://127.0.0.1:1080/WebTours/" [MsgId: MWAR-26610]
Action.c(17): 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(17): web_link("sign up now") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
请那位大侠帮忙指导一下啊,小弟感激不禁作者: lchydp 时间: 2016-2-14 23:18
不知楼主用的是LR的哪个版本呢?我用的是LR11,情况有些不同。在URL-based模式的脚本中使用了web_find函数,得到的报错是这样的:
Action.c(15): web_concurrent_start was successful [MsgId: MMSG-26392]
Action.c(17): Registering web_url("reservations.pl") was successful [MsgId: MMSG-26390]
Action.c(26): Error -26359: Function not allowed within a concurrent group [MsgId: MERR-26359]
Action.c(26): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
而在HTML-mode脚本中,将web_find放在检查内容的前面,得到的才是:
vuser_init.c(15): 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]
vuser_init.c(15): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]