|
我写了这么一段代码:
web_submit_form("gzcx_results.asp",
"Snapshot=t4.inf",
ITEMDATA,
"Name=SalaryDate", "Value=", ENDITEM,
"Name=Department", "Value=总部级干部", ENDITEM,
"Name=EmpNo", "Value={EmpNo}", ENDITEM,
"Name=CmdSearch", "Value= 查 询 ", ENDITEM,
LAST);
其中员工编号:{EmpNo}为我设的参数,一共有三个值(0014,0032,0186),但是跑完后日志里面却显示只有第一个值通过了,另外两个值却报错了,错误内容如下:
Action.c(4): 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(4): web_link("工资查询") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
有哪位高手知道是怎么回事呀!小弟先谢谢各位了,我最近刚刚开始学loadrunner,可能问的问题很初级,忘大家见谅 |
|