求助:关于EVENTVALIDATION参数化问题
web_reg_save_param("Siebel_Analytic_ViewState6","LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_reg_save_param("param",
"LB/IC=EVENTVALIDATION\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("frmWHIN_SupDeliveryPlanAdd.aspx",
"URL=http://192.168.0.3:9090/WMS/frmWHIN_SupDeliveryPlanAdd.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.3:9090/frmMain.aspx",
"Snapshot=t41.inf",
"Mode=HTML",
EXTRARES,
"Url=jsfiles/skin/WdatePicker.css", ENDITEM,
"Url=../images/p-up-con-bg.gif", ENDITEM,
"Url=../images/p-up-b.gif", ENDITEM,
LAST);
web_url("My97DatePicker.htm",
"URL=http://192.168.0.3:9090/WMS/jsfiles/My97DatePicker.htm",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.3:9090/frmMain.aspx",
"Snapshot=t42.inf",
"Mode=HTML",
EXTRARES,
"Url=lang/zh-cn.js", ENDITEM,
"Url=skin/default/datepicker.css", ENDITEM,
"Url=skin/whyGreen/datepicker.css", ENDITEM,
"Url=skin/default/img.gif", ENDITEM,
LAST);
web_url("frmSel_WHBA_Supplier.aspx",
"URL=http://192.168.0.3:9090/WMS/frmSel_WHBA_Supplier.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.3:9090/WMS/frmWHIN_SupDeliveryPlanAdd.aspx",
"Snapshot=t43.inf",
"Mode=HTML",
LAST);
web_submit_data("frmWHIN_SupDeliveryPlanAdd.aspx_2",
"Action=http://192.168.0.3:9090/WMS/frmWHIN_SupDeliveryPlanAdd.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.3:9090/WMS/frmWHIN_SupDeliveryPlanAdd.aspx",
"Snapshot=t44.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=save", ENDITEM, ///wEWBQLJu7YQAtjv4LIIAry0j/wOAv3b+aUIApy3uJIMf+ZXPU3mQNSUExQlNJs6G0BpeiE=
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState6}", ENDITEM,
"Name=__EVENTVALIDATION", "Value={param}", ENDITEM,
"Name=txtInvoiceNo", "Value=", ENDITEM,
"Name=txtSupplierID", "Value=2222", ENDITEM,
"Name=txtDeliveryDate", "Value=2010-06-30", ENDITEM,
LAST);
查了资料EVENTVALIDATION是页面自动生成的,这个录制的脚步中EVENTVALIDATION参数化,是否正确?
这段脚本上面有一些登陆的,我将登陆名和密码参数化了(确保参数化成功),循环2次,为什么第一次成功,
第二次就提示
Action.c(591): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.0.3:9090/WMS/frmWHIN_SupDeliveryPlanAdd.aspx"
Action.c(591): web_submit_data highest severity level was "ERROR", 2907 body bytes, 240 header bytes 按照你的说法,是自动生成的,那么应该用关联。
脚本中也有关联和参数化的部分。
你可以把参数的数值打印出来,看是否正确;并查看报错的具体原因。
回复 2# 的帖子
谢谢!打印出来是正确的,脚本循环,不同的用户不同的参数,无误,但是压力的时候2个用户只能通过1个,不知道为什么。继续奋战 2次循环的参数换一下呢回复 4# 的帖子
也是OK 的 但不知道为什么压力的时候只能第一个用户通过 Virtual User Script startedStarting action vuser_init.
Web Turbo Replay of LoadRunner 7.80.0 for WINXP; Web build 2271
Run-Time Settings file: "D:\Program Files\Mercury Interactive\LoadRunner\scripts\WMS_Plan_http\\default.cfg"
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(773): eventvalidation:/wEWBQLQ7d3hCgLY7+CyCAK8tI/8DgL92/mlCAKct7iSDG4yKgp/cuySkN88wp8poFf5CYFW
Action.c(774): viewstate:/wEPDwUKMTIxNzYxMDE1Nw9kFgICAw9kFgICAQ9kFgICCw8PFgIeBFRleHQFA2MxMmRkZOvoQWxxH4Ag6LhA3WCei9Vq6ofV
Action.c(775): strUser:c12
Action.c(777): strPwd:c10c10
Ending action Action.
Ending iteration 1.
Starting iteration 2.
Starting action Action.
Action.c(773): eventvalidation:/wEWBQLj1ZWqAwLY7+CyCAK8tI/8DgL92/mlCAKct7iSDOZALOKrxXGSFG8/L5pTB+oIWKlV
Action.c(774): viewstate:/wEPDwUKMTIxNzYxMDE1Nw9kFgICAw9kFgICAQ9kFgICCw8PFgIeBFRleHQFA2MxM2RkZEKeAJ6Yzsn8pr7a3e7VcGemzOkl
Action.c(775): strUser:c13
Action.c(777): strPwd:c10c10
Ending action Action.
Ending iteration 2.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
参数的值都得到了 并且是正确的,脚本循环是OK的,但压力测试的时候并发两个用户,只能成功一个 不知道楼主的问题解决了没有,我也有这样的问题 觉得应该是关联的地方错了,不行的话可以用自动关联试试,调试时不要设置发现错误后继续运行脚本 ViewState 一般不需要关联 并发的时候只能通过一个,脚本走到哪一步失败?
登陆时失败?是否同一用户只能同时登陆一次。
登陆成功后发起请求失败?没有业务逻辑没法分析定位。
页:
[1]