|
.net开发的webservice程序,在客户端先访问网页弹出安装页面,完成安装后将弹出系统登陆界面,在录制脚本选择协议时选择的是Web Services协议,但在录制的时候系统总是报错。后来换成直接录制服务端的登陆脚本,完成登陆脚本如下:
vuser_init()
{
web_service_call( "StepName=Login_103",
"SOAPMethod=UserWebService.UserWebServiceSoap.Login",
"ResponseParam=response",
"WSDL=C:/Documents and Settings/Administrator/桌面/Debug/User/UserWebService.wsdl",
"Snapshot=t1173864741.inf",
BEGIN_ARGUMENTS,
"password=Abc1234",
"userCode=admin",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
return 0;
}
但录制完成的脚本在验证时总是无法通过,验证结果如下:
Virtual User Script started
Starting action vuser_init.
vuser_init.c(4): web_service_call "Login_103" started.
vuser_init.c(4): using client emulation General
vuser_init.c(4): web headers not matching emulated client removed.
vuser_init.c(4): Error: Server "localhost" has shut down the connection prematurely
vuser_init.c(4): Error: web_service_call "Login_103" execution failed
Abort was called from an action.
求高手指点,协议选择是否正确?本人以前只路过HTTP/HTML协议下网页类型的压力测试脚本,这次是我第一次独立承担这个任务,大家帮帮忙啊!
[ 本帖最后由 cassis 于 2007-3-14 18:06 编辑 ] |
|