天天看点

LoadRunner8.1测试web服务报错

测试脚本如下:

vuser_init()

{

 web_service_call( "StepName=sendMsg_101",

  "SOAPMethod=UniworkService.UniworkServicePortType.sendMsg",

  "ResponseParam=response",

  "WSDL=http://eiptest.hi.chinamobile.com/uniworkx/services/uniwork?wsdl",

  "UseWSDLCopy=1",

  "Snapshot=t1200539336.inf",

  BEGIN_ARGUMENTS,

  "in0=RLZZXT",

  "in1=123456",

  "in2=26100408",

  "in3=13907612424",

  "in4=压力测试web服务发送短信",

  END_ARGUMENTS,

  BEGIN_RESULT,

  "out=Param_out",

  END_RESULT,

  LAST);

 lr_think_time(3);

 return 0;

}

运行以上脚本报错,日志如下:

虚拟用户脚本已启动

正在开始操作 vuser_init。

vuser_init.c(4): Web service call "sendMsg_101" started

vuser_init.c(4): Using working copy of the WSDL file "http://eiptest.hi.chinamobile.com/uniworkx/services/uniwork?wsdl"

vuser_init.c(4): Using client emulation Axis

vuser_init.c(4): Removed Web headers not matching the emulated client

vuser_init.c(4): 错误: C interpreter run time error: vuser_init.c (4):  Error -- memory violation : Exception ACCESS_VIOLATION received.

vuser_init.c(4): 通知: CCI 跟踪: vuser_init.c(4): web_service_call(0x00e802ce "StepName=sendMsg_101", 0x00e80295 "SOAPMethod=UniworkService.UniworkService...", 0x00e8027e "ResponseParam=response", 0x00e80238 "WSDL=http://eiptest.hi.chinamobile.com/u...", 0x00e8022a "UseWSDLCopy=1", 0x00e80211.

vuser_init.c(4): 通知: CCI 跟踪:  "Snapshot=t1200539336.inf", 0x00e80201 "BEGIN_ARGUMENTS", 0x00e801f6 "in0=RLZZXT", 0x00e801eb "in1=123456", 0x00e801de "in2=26100408", 0x00e801ce "in3=13907612424", 0x00e801b2, 0x00e801a4 "END_ARGUMENTS", 0x00e80197 "BEGIN_RESULT", 0x00e80189 "out=Param_ou.

vuser_init.c(4): 通知: CCI 跟踪: t", 0x00e8017e "END_RESULT", 15204729)

.

vuser_init.c(4): 通知: CCI 跟踪: Compiled_code(0): vuser_init()