|
2#
楼主 |
发表于 2007-8-17 19:23:38
|
只看该作者
选择positive testing录制出脚本如下:
/* NOTE: This is an automatically generated script, and serves as a template.
To optimize the use of this script, it is recommended that you review its content,
run it, examine its results, and add checkpoints as necessary. */
Action()
{
/*
method: Login
argument type LoginRequest
argument type LoginResponse
*/
web_service_call( "StepName=Login_101",
"SOAPMethod=stbssorpc.stbssorpcSOAP.Login",
"ResponseParam=response",
"Service=stbssorpc",
"Snapshot=t1187348589.inf",
BEGIN_ARGUMENTS,
"xml:LoginRequest=<LoginRequest><UserId>auto string</UserId><KeysMD5>auto "
"string</KeysMD5><StbMac>auto string</StbMac><Metadata><Metadata><name>auto "
"string</name><value>auto string</value></Metadata></Metadata></LoginRequest>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
/*
method: Logout
argument type LogoutRequest
argument type LogoutResponse
*/
web_service_call( "StepName=Logout_101",
"SOAPMethod=stbssorpc.stbssorpcSOAP.Logout",
"ResponseParam=response",
"Service=stbssorpc",
"Snapshot=t1187348590.inf",
BEGIN_ARGUMENTS,
"xml:LogoutRequest=<LogoutRequest><UserId>auto string</UserId><LoginToken>auto "
"string</LoginToken></LogoutRequest>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
/*
method: StartLogin
argument type StartLoginRequest
argument type StartLoginResponse
*/
web_service_call( "StepName=StartLogin_101",
"SOAPMethod=stbssorpc.stbssorpcSOAP.StartLogin",
"ResponseParam=response",
"Service=stbssorpc",
"Snapshot=t1187348591.inf",
BEGIN_ARGUMENTS,
"xml:StartLoginRequest=<StartLoginRequest><UserId>auto string</UserId>"
"</StartLoginRequest>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
return 0;
}
运行一下结果如下:
Virtual User Script started
Starting action vuser_init.
Web Services replay version 8.1.0 for WINXP; Toolkit: ".Net"; WebServices78 build 959
Run-Time Settings file: "E:\Program Files\Mercury\LoadRunner\Scripts\temp\stbssorpc\PositiveTesting\\default.cfg"
Vuser directory: "E:\Program Files\Mercury\LoadRunner\Scripts\temp\stbssorpc\PositiveTesting"
Vuser output directory: "E:\Program Files\Mercury\LoadRunner\Scripts\temp\stbssorpc\PositiveTesting\"
LOCAL start date/time: 2007-08-17 19:04:57
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(12): Web service call "Login_101" started
Action.c(12): Error Exceptions:
Action.c(12): Error: InvokeMethod failure: External component has thrown an exception..
Action.c(12): Notify: Saving Parameter "response = "
Action.c(12): Error: Web service call "Login_101" execution failed
Action.c(12): Continuing after error in Vuser script.
Action.c(33): Web service call "Logout_101" started
Action.c(33): Error Exceptions:
Action.c(33): Error: InvokeMethod failure: External component has thrown an exception..
Action.c(33): Notify: Saving Parameter "response = "
Action.c(33): Error: Web service call "Logout_101" execution failed
Action.c(33): Continuing after error in Vuser script.
Action.c(53): Web service call "StartLogin_101" started
Action.c(53): Error Exceptions:
Action.c(53): Error: InvokeMethod failure: External component has thrown an exception..
Action.c(53): Notify: Saving Parameter "response = "
Action.c(53): Error: Web service call "StartLogin_101" execution failed
Action.c(53): Continuing after error in Vuser script.
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
现在不知道问题在哪里
请各位帮忙!
谢谢! |
|