51Testing软件测试论坛
标题:
submit脚本回放不执行
[打印本页]
作者:
linhai08
时间:
2011-4-16 12:56
标题:
submit脚本回放不执行
录制了一个登录过程,其中包含以下的一段submit,执行到这里就过不去,请教是什么原因?注掉就可以了。
全部脚本如下,带颜色的是不能执行的代码:
Action()
{
lr_start_transaction("OA登陆");
web_custom_request("http.do",
"URL=http://10.122.176.119/http.do",
"Method=POST",
"Resource=0",
"RecContentType=application/vnd.dh-msc",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"Body=_MSC_CMD_=USR&action=login&relogin=false&mscver=V2.9.4.BUILD.03.101213.79968&phonemodel=Windows||||Microsoft|&appid=BGPBKK&appver=1.0&partnerid=DHVN&screensize=768*700&cellid=&lac=&username=%E8%8B%8F%E4%BC%9F&password=1qaz1qaz",
LAST);
web_submit_data("http.do_2",
"Action=http://10.122.176.119/http.do",
"Method=POST",
"RecContentType=application/vnd.dh-msc",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=_MSC_CMD_", "Value=ALT", ENDITEM,
"Name=lac", "Value=", ENDITEM,
"Name=cellid", "Value=", ENDITEM,
LAST);
web_custom_request("http.do_3",
"URL=http://10.122.176.119/http.do",
"Method=POST",
"Resource=0",
"RecContentType=application/vnd.dh-msc",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"Body=_MSC_CMD_=QRY&action=bs-transfer@mdp&url=http://10.122.176.119:8080/gephq02apd10/PC/main.html",
LAST);
lr_end_transaction("OA登陆",LR_AUTO);
return 0;
}
作者:
msnshow
时间:
2011-4-17 13:33
发日志贴出来看看
作者:
linhai08
时间:
2011-4-18 11:26
标记颜色的部分没执行就停止了,以下是回放日志
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.10.0 for WINXP; WebReplay85 build 5896 [MsgId: MMSG-27143]
Run Mode: HTML [MsgId: MMSG-26000]
Run-Time Settings file: "C:\Documents and Settings\guoxinfa.D-HEAVEN\Local Settings\Temp\noname35\\default.cfg" [MsgId: MMSG-27141]
vuser_init.c(12): web_custom_request("http.do") was successful, 443 body bytes, 261 header bytes [MsgId: MMSG-26386]
作者:
linhai08
时间:
2011-4-26 14:57
没有人遇到这种情况吗?
作者:
frankwangzy1103
时间:
2011-4-26 15:24
错误的日志没有发啊
只发到了http.do成功的日志
作者:
linhai08
时间:
2011-4-28 18:01
日志没出错,就是执行到那就停止了,没有往下执行了。不知道何故。
抓包也没有数据发出去。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2