51Testing软件测试论坛
标题:
[新手求助]添加用户的脚本在加压时报memory violation : Exception
[打印本页]
作者:
sq870228
时间:
2012-5-23 15:42
标题:
[新手求助]添加用户的脚本在加压时报memory violation : Exception
VU脚本如下:
vuser_init()
{
lr_start_transaction("flesh");
web_url("login.do",
"URL=http://10.12.1.241:9090/zenointel_admin/admin/login.do?act=key",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=images/bg.jpg", "Referer=http://10.12.1.241:9090/zenointel_admin/admin/login.do?act=key", ENDITEM,
"Url=images/buttom.png", "Referer=http://10.12.1.241:9090/zenointel_admin/admin/login.do?act=key", ENDITEM,
"Url=images/login.png", "Referer=", ENDITEM,
LAST);
lr_end_transaction("flesh", LR_AUTO);
lr_think_time(17);
lr_start_transaction("login");
web_submit_data("login.do;jsessionid=8B18A985893C8541AD7484379EEBC036",
"Action=http://10.12.1.241:9090/zenointel_admin/admin/login.do;jsessionid=8B18A985893C8541AD7484379EEBC036",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/login.do?act=key",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginname", "Value=system", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=randcode", "Value=", ENDITEM,
EXTRARES,
"Url=frame/images/mainbg.jpg", "Referer=http://10.12.1.241:9090/zenointel_admin/admin/frame/main.jsp", ENDITEM,
LAST);
lr_end_transaction("login",LR_AUTO);
return 0;
}
Action()
{
lr_start_transaction("neruser");
web_url("over.png",
"URL=http://10.12.1.241:9090/zenointel_admin/admin/frame/menu/over.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/frame/main.jsp",
"Snapshot=t6.inf",
LAST);
web_url("banner.png",
"URL=http://10.12.1.241:9090/zenointel_admin/admin/frame/images/banner.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/frame/main.jsp",
"Snapshot=t7.inf",
LAST);
web_submit_data("nav.do",
"Action=http://10.12.1.241:9090/zenointel_admin/admin/nav.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/frame/main.jsp",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=coding", "Value=001009", ENDITEM,
"Name=s", "Value=0.3459531420499537", ENDITEM,
EXTRARES,
"Url=frame/images/middletable.gif", "Referer=http://10.12.1.241:9090/zenointel_admin/admin/frame/main.jsp", ENDITEM,
LAST);
web_url("users.do",
"URL=http://10.12.1.241:9090/zenointel_admin/admin/users.do?act=operation",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/frame/main.jsp",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
web_url("DDEE4930190DB3E98C461B634A11584C.cache.html",
"URL=http://10.12.1.241:9090/zenointel_admin/admin/ui/OpGroupForm/DDEE4930190DB3E98C461B634A11584C.cache.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/users.do?act=create&type=control",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=/zenointel_admin/admin/xml.file?act=get&type=org&name=system&coding=001&mxy=1337740066406", ENDITEM,
"Url=/zenointel_admin/admin/xml.file?act=get&type=right&name=system&coding=001&mxy=1337740066406", ENDITEM,
"Url=/zenointel_admin/admin/image/loader.gif", "Referer=http://10.12.1.241:9090/zenointel_admin/admin/users.do?act=create&type=control", ENDITEM,
LAST);
web_submit_data("users.do_2",
"Action=http://10.12.1.241:9090/zenointel_admin/admin/users.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.12.1.241:9090/zenointel_admin/admin/users.do?act=create&type=control",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=coding", "Value=001", ENDITEM,
"Name=groupid", "Value=1", ENDITEM,
"Name=reallink", "Value=1", ENDITEM,
"Name=loginname", "Value=589", ENDITEM,
"Name=username", "Value=589", ENDITEM,
"Name=loginpass", "Value=589", ENDITEM,
"Name=usertype", "Value=1", ENDITEM,
"Name=papername", "Value=韬唤璇\x81", ENDITEM,
"Name=papernumber", "Value=684651654", ENDITEM,
"Name=interfacename", "Value=", ENDITEM,
"Name=interfacephone", "Value=", ENDITEM,
"Name=connectionname", "Value=", ENDITEM,
"Name=connectionphone", "Value=", ENDITEM,
"Name=address", "Value=", ENDITEM,
"Name=id", "Value=", ENDITEM,
"Name=act", "Value=add", ENDITEM,
"Name=forward", "Value=operation", ENDITEM,
"Name=forwardtype", "Value=operation", ENDITEM,
"Name=rggcoding", "Value=", ENDITEM,
"Name=x", "Value=27", ENDITEM,
"Name=y", "Value=9", ENDITEM,
LAST);
lr_end_transaction("neruser",LR_AUTO);
return 0;
}
vuser_end()
{
return 0;
}
这样写的话 在回放时 是成功的
但是在加压时 会报 Action.c(46): Error: C interpreter run time error: Action.c (46): Error -- memory violation : Exception ACCESS_VIOLATION received.的error
100个VU会有30左右报这个错误,求助如何解决
作者:
allenchen0526
时间:
2012-5-24 15:49
请写出你的运行环境,系统配置等
作者:
unline
时间:
2012-8-7 11:27
回复
1#
sq870228
不知道你的问题解决了没有
你好:我遇到了个问题 希望能帮个忙···
解释器运行时错误: Action.c (31): Error -- memory violation : Exception ACCESS_VIOLATION received。
我在脚本回放时没有问题,在场景中执行并发量控制在25以内也没有问题,但是30后就开始报这个错误了
如果知道请发个邮件给我 谢谢:
yhy_study@163.com
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2