天天看點

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()