|
LR:9.51
OS:Window XP sp3
客户端:asp.net 基于 .net framework 3.5
服务端:Web Service 基于 .net framework 3.5
录制协选择 Web(Http/html)
脚本如下
web_submit_data("default.aspx_2",
"Action=http://localhost/CRMPerformanceTest/default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/CRMPerformanceTest/default.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWCAKav/b+CALKi+T3BgKG2MQYAobYsBkCgdjYGAKSjcb7CwKMu8ySAQKct7iSDBPj1P5irhLHqtiFcP5cMEEi8twn", ENDITEM,
"Name=ddlParent", "Value=1000150083", ENDITEM,
"Name=txtDealerName", "Value={DealerNameParam}", ENDITEM,
"Name=txtProvisionName", "Value={ProvisionNameParam}", ENDITEM,
"Name=btnSave", "Value=Save", ENDITEM,
LAST);
其中 txtDealerName 和 txtProvisionName 已做了参数化,在此情况写,回放脚本成功
然后将ddlParent 的 value 参数化
数据是通过数据库取得
参数化以后的脚本
web_submit_data("default.aspx_2",
"Action=http://localhost/CRMPerformanceTest/default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/CRMPerformanceTest/default.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWCAKav/b+CALKi+T3BgKG2MQYAobYsBkCgdjYGAKSjcb7CwKMu8ySAQKct7iSDBPj1P5irhLHqtiFcP5cMEEi8twn", ENDITEM,
"Name=ddlParent", "Value={ParentDealerID}", ENDITEM,
"Name=txtDealerName", "Value={DealerNameParam}", ENDITEM,
"Name=txtProvisionName", "Value={ProvisionNameParam}", ENDITEM,
"Name=btnSave", "Value=Save", ENDITEM,
LAST);
参数化以后,报错
Action.c(15): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost/CRMPerformanceTest/default.aspx" [MsgId: MERR-26612]
Action.c(15): web_submit_data("default.aspx_2") highest severity level was "ERROR", 7107 body bytes, 352 header bytes [MsgId: MMSG-26388]
请大家帮忙看看是什么问题,谢谢 |
|