帮忙看下这个异常是啥意思
虚拟用户脚本已启动正在开始操作 vuser_init。
vuser_init.c(4): Web service call "example_101" started
vuser_init.c(4): Using working copy of the WSDL file "C:/Documents and Settings/Administrator/桌面/LoadRunnerTest.xml"
vuser_init.c(4): Using client emulation General
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(0x0157025f "StepName=example_101", 0x01570226 "SOAPMethod=LoadRunnerTest.LoadRunnerTest...", 0x0157020f "ResponseParam=response", 0x015701ca "WSDL=C:/Documents and Settings/Administr...", 0x015701bc "UseWSDLCopy=1", 0x015701a3.
vuser_init.c(4): 通知: CCI 跟踪:"Snapshot=t1339116035.inf", 0x01570193 "BEGIN_ARGUMENTS", 0x01570184 "in0={NewParam}", 0x01570176 "END_ARGUMENTS", 0x01570169 "BEGIN_RESULT", 0x0157015e "END_RESULT", 0x01570159 "LAST")
.
vuser_init.c(4): 通知: CCI 跟踪: Compiled_code(0): vuser_init()
附带脚本:
vuser_init()
{
web_service_call( "StepName=example_101",
"SOAPMethod=LoadRunnerTest.LoadRunnerTestPortType.example",
"ResponseParam=response",
"WSDL=C:/Documents and Settings/Administrator/桌面/LoadRunnerTest.xml",
"UseWSDLCopy=1",
"Snapshot=t1339116035.inf",
BEGIN_ARGUMENTS,
"in0={NewParam}",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
return 0;
}
Action()
{
return 0;
}
vuser_end()
{
return 0;
}
#include "lrun.h"
#include "as_web.h"
#include "lrw_custom_body.h"
#define BEGIN_ARGUMENTS "BEGIN_ARGUMENTS"
#define END_ARGUMENTS "END_ARGUMENTS"
#define BEGIN_RESULT "BEGIN_RESULT"
#define END_RESULT "END_RESULT" 遇到了,空指针问题,昨查到,忘了那个网址了 在查看lr的函数说明的时候,有如下解释:
However,lr_whoamireturns the group name as a static buffer and such buffers cannot be manipulated with. If manipulation is required, a copy of the static buffer must be created.
http://www.shininghub.com LR好像对中文路径支持不好,你换个路径试试 我xml换个路径放试试, 避免中文看看! 换到d盘根目录下也不行! 我好像遇到过这种情况,好像是哪里没有设置对 这个问题解决了是我的测试脚本不应该搞到vuser_init里应该放在Action里!但是现在又出了一个新的问题!
虚拟用户脚本已启动
正在开始操作 vuser_init。
正在结束操作 vuser_init。
正在运行 Vuser...
正在开始迭代 1。
正在开始操作 Action。
Action.c(4): Web service call "example_101" started
Action.c(4): Using working copy of the WSDL file "D:/LoadRunnerTest.xml"
Action.c(4): Using client emulation General
Action.c(4): Removed Web headers not matching the emulated client
Action.c(4): 错误: C interpreter run time error: Action.c (4):Error -- memory violation : Exception ACCESS_VIOLATION received.
Action.c(4): 通知: CCI 跟踪: Action.c(4): web_service_call(0x0156022c "StepName=example_101", 0x015601f3 "SOAPMethod=LoadRunnerTest.LoadRunnerTest...", 0x015601dc "ResponseParam=response", 0x015601c1 "WSDL=D:/LoadRunnerTest.xml", 0x015601b3 "UseWSDLCopy=1", 0x0156019a "Snapshot=t133913.
Action.c(4): 通知: CCI 跟踪: 3399.inf", 0x0156018a "BEGIN_ARGUMENTS", 0x01560184 "in0=A", 0x01560176 "END_ARGUMENTS", 0x01560169 "BEGIN_RESULT", 0x0156015e "END_RESULT", 0x01560159 "LAST")
.
Action.c(4): 通知: CCI 跟踪: Compiled_code(0): Action()
.
正在结束 Vuser...
正在开始操作 vuser_end。
正在结束操作 vuser_end。
Vuser 已终止。
页:
[1]