脚本运行正常,但是在场景中运行却出错
本帖最后由 lingyun1104 于 2011-10-16 23:02 编辑在contrallor中执行时报错如下:错误 -35061: 找不到请求的参数“CorrelationParameter_2”的匹配项。检查请求的边界是否存在于响应数据中。此外,如果要保存的数据超过 15280 个字节,请使用 web_set_max_html_param_len 增加参数大小。
PS:
1、CorrelationParameter_2在脚本中做的一个关联;
2、“如果要保存的数据超过 15280 个字节”,这个参数CorrelationParameter_2保存的动态值一般为3000多点,不可能超过15280这个值。这个在脚本编写的时候已经解决了,基本可以排除是这个原因。
问题分析:
一、关联函数:
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=mark=&order=",
"RB=%3d%3d",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/BizApply.aspx*",
LAST);
说明:“CorrelationParameter_2”是保存生成订单的内容。因为不同的订单会有不同的值,在此做了一个关联。
二、在脚本中,调试的已经能通过,不同的订单也能成功的关联,在Vugen中执行一次,就能在应用系统中看到一个成功的订单位。
问题:
把在Vugen调试好的脚本设置场景,执行,一定会报如开始中所报的错。有没有遇到相同问题的兄弟姐妹们,给解答下。
由于脚本在这里不能帖,下面的链接里有脚本以及说明,请查看:
http://www.51testing.com/?uid-40486-action-viewspace-itemid-247190 自己先顶一下,不要落下去了,看到的朋友、楼主,给解答一下。 再说明书一下,在vugen脚本中这个这个值取的是正确的,我在页的源代码中看过,仔细的对比过,为什么在场景执行时,就会报错,另也不是都报错,有的又能取到值,并能在应用程序中看到真实的模块了业务,并成功的提交了订单。 有没有遇到类似情况 的朋友给找个原因 呀 运行场景,不论vuger多少都一定报这个错误?每个事务都报吗 回复 5# jj_ljw
也不是都传报错:
我试验了一下:
一、在controllor场景中,设置Vuser:1时
结果:全部通过;
二、在controllor场景中,设置Vuser:2时
结果:通过:不通过=1:1(大概比例)
三、在controllor场景中,设置Vuser:3时
结果:通过:不通过=1:2(大概比例) 也就是说,Vuser设置 的越多,在执行场景时,报的错越多。
有没有人遇到过这种情况 。 是每次只通过一个吗?
业务操作是否与操作用户有关? 回复 8# mymagic
无关,用同一用户进去的。 调试肯定能过。
你是单用户压力订单脚本,试试不同用户压力下
完整脚本方便贴出来么 问题就是 是否支持同一个用户同时提交多个订单。 关注,我最近也碰到这个问题! 那就是你的服务器的问题,看看你服务器日志就明白什么原因了?如果抓取不到,说明了服务器没有返回正确的数据。查看日志,定位问题出现在什么地方。 回复 10# ljj149850508
Action3()
{
lr_think_time(30);
web_set_max_html_param_len("152800");
//Correlation comment - Do not change!Original value='Bd8hBExQXBO3cYxOFiyhnKbGdev9OotVZMzOZY7INHPWjuQkZLjnSW1y2bsD%2f0HONh21nhEZu%2bkyr47ZdoHr%2b%2fLnYgxCVy6AL3rIC1mJQo%2bFaeAEurigyWaoODQHdzpmkro0bDbMIXzsqPVkkvlL9l3M1uekJjefXjqx6NR4zVdQuHPscyttOmRcvxxberJNLOZn7Ks0%2bbcJaTILyPcv3r6IyKWRdYEN5jaYnI%2fGjgoUtRkn4GCqYMgTlivx47%2bcc0q8Zr%2fYZbI%2bVjlfRPQwv%2fikd3RLN%2f42w1%2fSKDJBSOJ62TtLQ0d3xOZ8uk6YsI21tib0ESsfLpWkSElMyajAXX%2fHpSVxNPFPSI7%2fP3GFG98hTE5xgZRh7yXwYsup2%2f9SgmOYyTlob6Bv4%2b3EDgVEGe0%2bWbXAbtFCIjY0J20Bzy3zVKyA0FRTgREOVYgmUSCXNMVLDZgOkanJclb62tGphWZbqpbMkk3TZtGCWsHdfKmfLV2u8r9Faas9Vjjv0W1TDQao9FkM8qAkTyakLHxjUxOh%2bx3GMJxJkonOoPbTaKkRxU4MuWKBjgc9mP0%2fdybhClKGRNaAzyOHusX4egL2vedYh8WXgWSC%2b0BalK31LaYXhHJKwXY3CcB8WUM%2fLb60%2bXEHdFVVFBVxZtxtr7LKmiNi3KTYtoggNd0GprGzdQB3EuOc49NATs%2b3iA7Qj6c2%2fF0nK3fWyBn0VcvZO%2bLrCB81mE824Rizi9x0gzKEr%2fVbupIxNiJQItyIIvn%2f2Wl8P%2bYPlG6gwBz73Frq13ORNXxTJJbXQATSkmdmEj9dM5Je7zg5%2fGc5QbD9cNqkXgdGhXSeOzZL%2bkuNNDXLlMBQY' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=order=",
"RB=%3d%3d",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/BizApply.aspx*",
LAST);
lr_start_transaction("è·èϽé·Ñ");
web_submit_data("BizApply.aspx_3",
"Action=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Snapshot=t36.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
"Name=__SCROLLPOSITIONX", "Value=0", ENDITEM,
"Name=__SCROLLPOSITIONY", "Value=0", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__EVENTVALIDATION", "Value={CorrelationParameter_1}", ENDITEM,
"Name=ddlCarrier$DropDownList1", "Value=37", ENDITEM,
"Name=txtBookingNo", "Value=", ENDITEM,
"Name=hfCheckCode", "Value=0", ENDITEM,
"Name=TextBoxValidateCode", "Value=", ENDITEM,
"Name=gvBooking$ctl01$chkSelectAll", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$chkSelect", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$hidEIR_DETAIL_SEQ", "Value={EIR_DETAIL_SEQ}", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_SEQ", "Value=37", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_CODE", "Value=China Shipping", ENDITEM,
"Name=gvBooking$ctl02$hidMODIFY_DATETIME", "Value=2011-08-18 14:08:09.196562", ENDITEM,
"Name=btnBatchConfirm", "Value=è·èϽé·Ñ", ENDITEM,
LAST);
lr_think_time(50);
/* Registering parameter(s) from source task id 78
// {Siebel_Analytic_ViewState10} = "/wEPDwUJODE5MjA0MjQ0D2QWAgIBD2QWAgIBDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIBZBYCZg9kFgQCAQ9kFg5mDw8WAh4EVGV4dAUFMTE5MDdkZAIBDw8WAh8CBRMyMDExLzEwLzExIDEzOjQxOjQzZGQCAg9kFgICAQ8PFgIfAgUG5LuY5qy+ZGQCAw8PFgIfAgUOQ2hpbmEgU2hpcHBpbmdkZAIEDw8WAh8CBRLorr7lpIfkuqTmjqXljZXotLlkZAIFDw8WAh8CBQUzMC4wMGRkAgYPDxYCHwIFBiZuYnNwO2RkAgIPDxYCHgdWaXNpYmxlaGRkGAIFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBQdidG5OZXh0BQlidG5DYW5jZWwFB2d2UXVlcnkPPCsACgEIAgFks1bK51E9YLJLa++RataORXBBbnU="
// */
web_reg_save_param("Siebel_Analytic_ViewState10",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
//Correlation comment - Do not change!Original value='I//mND' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_3",
"LB=\"__EVENTVALIDATION\" value=\"",
"RB=\"",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/OrderPay.aspx*",
LAST);
web_url("OrderPay.aspx",
"URL=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t38.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("base.css_2",
"URL=http://192.168.200.249/EPay/css/base.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t39.inf",
LAST);
web_url("usercenter.css_2",
"URL=http://192.168.200.249/EPay/css/usercenter.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t40.inf",
LAST);
web_url("15.gif",
"URL=http://192.168.200.249/EPay/images/15.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t42.inf",
LAST);
web_url("16.gif",
"URL=http://192.168.200.249/EPay/images/16.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
web_url("WebResource.axd_2",
"URL=http://192.168.200.249/epay/WebResource.axd?d=JbgjsqIYckRSs8Wxm7pDtA2&t=633802920069218315",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t41.inf",
LAST);
web_concurrent_start(NULL);
web_url("ucdot7.gif",
"URL=http://192.168.200.249/EPay/images/ucdot7.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t43.inf",
LAST);
web_url("mywork_bg.png_2",
"URL=http://192.168.200.249/EPay/images/mywork_bg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t44.inf",
LAST);
web_url("htlogo.jpg",
"URL=http://192.168.200.249/EPay/images/htlogo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t45.inf",
LAST);
web_url("ucdot10.gif",
"URL=http://192.168.200.249/EPay/images/ucdot10.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t46.inf",
LAST);
web_concurrent_end(NULL);
/* Request with GET method to URL "http://192.168.200.249/favicon.ico" failed during recording. Server response : 404*/
/* Request with GET method to URL "http://192.168.200.249/EPay/images/new_header_bg2.gif;" failed during recording. Server response : 404*/
web_concurrent_start(NULL);
web_url("ucdot8.gif",
"URL=http://192.168.200.249/EPay/images/ucdot8.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t48.inf",
LAST);
web_url("ucdot9.gif",
"URL=http://192.168.200.249/EPay/images/ucdot9.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t49.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("è·èϽé·Ñ", LR_AUTO);
return 0;
} Action3()
{
lr_think_time(30);
web_set_max_html_param_len("152800");
//Correlation comment - Do not change!Original value='Bd8hBExQXBO3cYxOFiyhnKbGdev9OotVZMzOZY7INHPWjuQkZLjnSW1y2bsD%2f0HONh21nhEZu%2bkyr47ZdoHr%2b%2fLnYgxCVy6AL3rIC1mJQo%2bFaeAEurigyWaoODQHdzpmkro0bDbMIXzsqPVkkvlL9l3M1uekJjefXjqx6NR4zVdQuHPscyttOmRcvxxberJNLOZn7Ks0%2bbcJaTILyPcv3r6IyKWRdYEN5jaYnI%2fGjgoUtRkn4GCqYMgTlivx47%2bcc0q8Zr%2fYZbI%2bVjlfRPQwv%2fikd3RLN%2f42w1%2fSKDJBSOJ62TtLQ0d3xOZ8uk6YsI21tib0ESsfLpWkSElMyajAXX%2fHpSVxNPFPSI7%2fP3GFG98hTE5xgZRh7yXwYsup2%2f9SgmOYyTlob6Bv4%2b3EDgVEGe0%2bWbXAbtFCIjY0J20Bzy3zVKyA0FRTgREOVYgmUSCXNMVLDZgOkanJclb62tGphWZbqpbMkk3TZtGCWsHdfKmfLV2u8r9Faas9Vjjv0W1TDQao9FkM8qAkTyakLHxjUxOh%2bx3GMJxJkonOoPbTaKkRxU4MuWKBjgc9mP0%2fdybhClKGRNaAzyOHusX4egL2vedYh8WXgWSC%2b0BalK31LaYXhHJKwXY3CcB8WUM%2fLb60%2bXEHdFVVFBVxZtxtr7LKmiNi3KTYtoggNd0GprGzdQB3EuOc49NATs%2b3iA7Qj6c2%2fF0nK3fWyBn0VcvZO%2bLrCB81mE824Rizi9x0gzKEr%2fVbupIxNiJQItyIIvn%2f2Wl8P%2bYPlG6gwBz73Frq13ORNXxTJJbXQATSkmdmEj9dM5Je7zg5%2fGc5QbD9cNqkXgdGhXSeOzZL%2bkuNNDXLlMBQY' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=order=",
"RB=%3d%3d",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/BizApply.aspx*",
LAST);
lr_start_transaction("è·èϽé·Ñ");
web_submit_data("BizApply.aspx_3",
"Action=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Snapshot=t36.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
"Name=__SCROLLPOSITIONX", "Value=0", ENDITEM,
"Name=__SCROLLPOSITIONY", "Value=0", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__EVENTVALIDATION", "Value={CorrelationParameter_1}", ENDITEM,
"Name=ddlCarrier$DropDownList1", "Value=37", ENDITEM,
"Name=txtBookingNo", "Value=", ENDITEM,
"Name=hfCheckCode", "Value=0", ENDITEM,
"Name=TextBoxValidateCode", "Value=", ENDITEM,
"Name=gvBooking$ctl01$chkSelectAll", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$chkSelect", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$hidEIR_DETAIL_SEQ", "Value={EIR_DETAIL_SEQ}", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_SEQ", "Value=37", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_CODE", "Value=China Shipping", ENDITEM,
"Name=gvBooking$ctl02$hidMODIFY_DATETIME", "Value=2011-08-18 14:08:09.196562", ENDITEM,
"Name=btnBatchConfirm", "Value=è·èϽé·Ñ", ENDITEM,
LAST);
lr_think_time(50);
/* Registering parameter(s) from source task id 78
// {Siebel_Analytic_ViewState10} = "/wEPDwUJODE5MjA0MjQ0D2QWAgIBD2QWAgIBDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIBZBYCZg9kFgQCAQ9kFg5mDw8WAh4EVGV4dAUFMTE5MDdkZAIBDw8WAh8CBRMyMDExLzEwLzExIDEzOjQxOjQzZGQCAg9kFgICAQ8PFgIfAgUG5LuY5qy+ZGQCAw8PFgIfAgUOQ2hpbmEgU2hpcHBpbmdkZAIEDw8WAh8CBRLorr7lpIfkuqTmjqXljZXotLlkZAIFDw8WAh8CBQUzMC4wMGRkAgYPDxYCHwIFBiZuYnNwO2RkAgIPDxYCHgdWaXNpYmxlaGRkGAIFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBQdidG5OZXh0BQlidG5DYW5jZWwFB2d2UXVlcnkPPCsACgEIAgFks1bK51E9YLJLa++RataORXBBbnU="
// */
web_reg_save_param("Siebel_Analytic_ViewState10",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
//Correlation comment - Do not change!Original value='I//mND' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_3",
"LB=\"__EVENTVALIDATION\" value=\"",
"RB=\"",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/OrderPay.aspx*",
LAST);
web_url("OrderPay.aspx",
"URL=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t38.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("base.css_2",
"URL=http://192.168.200.249/EPay/css/base.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t39.inf",
LAST);
web_url("usercenter.css_2",
"URL=http://192.168.200.249/EPay/css/usercenter.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t40.inf",
LAST);
web_url("15.gif",
"URL=http://192.168.200.249/EPay/images/15.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t42.inf",
LAST);
web_url("16.gif",
"URL=http://192.168.200.249/EPay/images/16.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
web_url("WebResource.axd_2",
"URL=http://192.168.200.249/epay/WebResource.axd?d=JbgjsqIYckRSs8Wxm7pDtA2&t=633802920069218315",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t41.inf",
LAST);
web_concurrent_start(NULL);
web_url("ucdot7.gif",
"URL=http://192.168.200.249/EPay/images/ucdot7.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t43.inf",
LAST);
web_url("mywork_bg.png_2",
"URL=http://192.168.200.249/EPay/images/mywork_bg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t44.inf",
LAST);
web_url("htlogo.jpg",
"URL=http://192.168.200.249/EPay/images/htlogo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t45.inf",
LAST);
web_url("ucdot10.gif",
"URL=http://192.168.200.249/EPay/images/ucdot10.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t46.inf",
LAST);
web_concurrent_end(NULL);
/* Request with GET method to URL "http://192.168.200.249/favicon.ico" failed during recording. Server response : 404*/
/* Request with GET method to URL "http://192.168.200.249/EPay/images/new_header_bg2.gif;" failed during recording. Server response : 404*/
web_concurrent_start(NULL);
web_url("ucdot8.gif",
"URL=http://192.168.200.249/EPay/images/ucdot8.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t48.inf",
LAST);
web_url("ucdot9.gif",
"URL=http://192.168.200.249/EPay/images/ucdot9.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t49.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("è·èϽé·Ñ", LR_AUTO);
return 0;
} Action3()
{
lr_think_time(30);
web_set_max_html_param_len("152800");
//Correlation comment - Do not change!Original value='Bd8hBExQXBO3cYxOFiyhnKbGdev9OotVZMzOZY7INHPWjuQkZLjnSW1y2bsD%2f0HONh21nhEZu%2bkyr47ZdoHr%2b%2fLnYgxCVy6AL3rIC1mJQo%2bFaeAEurigyWaoODQHdzpmkro0bDbMIXzsqPVkkvlL9l3M1uekJjefXjqx6NR4zVdQuHPscyttOmRcvxxberJNLOZn7Ks0%2bbcJaTILyPcv3r6IyKWRdYEN5jaYnI%2fGjgoUtRkn4GCqYMgTlivx47%2bcc0q8Zr%2fYZbI%2bVjlfRPQwv%2fikd3RLN%2f42w1%2fSKDJBSOJ62TtLQ0d3xOZ8uk6YsI21tib0ESsfLpWkSElMyajAXX%2fHpSVxNPFPSI7%2fP3GFG98hTE5xgZRh7yXwYsup2%2f9SgmOYyTlob6Bv4%2b3EDgVEGe0%2bWbXAbtFCIjY0J20Bzy3zVKyA0FRTgREOVYgmUSCXNMVLDZgOkanJclb62tGphWZbqpbMkk3TZtGCWsHdfKmfLV2u8r9Faas9Vjjv0W1TDQao9FkM8qAkTyakLHxjUxOh%2bx3GMJxJkonOoPbTaKkRxU4MuWKBjgc9mP0%2fdybhClKGRNaAzyOHusX4egL2vedYh8WXgWSC%2b0BalK31LaYXhHJKwXY3CcB8WUM%2fLb60%2bXEHdFVVFBVxZtxtr7LKmiNi3KTYtoggNd0GprGzdQB3EuOc49NATs%2b3iA7Qj6c2%2fF0nK3fWyBn0VcvZO%2bLrCB81mE824Rizi9x0gzKEr%2fVbupIxNiJQItyIIvn%2f2Wl8P%2bYPlG6gwBz73Frq13ORNXxTJJbXQATSkmdmEj9dM5Je7zg5%2fGc5QbD9cNqkXgdGhXSeOzZL%2bkuNNDXLlMBQY' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=order=",
"RB=%3d%3d",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/BizApply.aspx*",
LAST);
lr_start_transaction("确认缴费");
web_submit_data("BizApply.aspx_3",
"Action=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Snapshot=t36.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
"Name=__SCROLLPOSITIONX", "Value=0", ENDITEM,
"Name=__SCROLLPOSITIONY", "Value=0", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__EVENTVALIDATION", "Value={CorrelationParameter_1}", ENDITEM,
"Name=ddlCarrier$DropDownList1", "Value=37", ENDITEM,
"Name=txtBookingNo", "Value=", ENDITEM,
"Name=hfCheckCode", "Value=0", ENDITEM,
"Name=TextBoxValidateCode", "Value=", ENDITEM,
"Name=gvBooking$ctl01$chkSelectAll", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$chkSelect", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$hidEIR_DETAIL_SEQ", "Value={EIR_DETAIL_SEQ}", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_SEQ", "Value=37", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_CODE", "Value=China Shipping", ENDITEM,
"Name=gvBooking$ctl02$hidMODIFY_DATETIME", "Value=2011-08-18 14:08:09.196562", ENDITEM,
"Name=btnBatchConfirm", "Value=确认缴费", ENDITEM,
LAST);
lr_think_time(50);
/* Registering parameter(s) from source task id 78
// {Siebel_Analytic_ViewState10} = "/wEPDwUJODE5MjA0MjQ0D2QWAgIBD2QWAgIBDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIBZBYCZg9kFgQCAQ9kFg5mDw8WAh4EVGV4dAUFMTE5MDdkZAIBDw8WAh8CBRMyMDExLzEwLzExIDEzOjQxOjQzZGQCAg9kFgICAQ8PFgIfAgUG5LuY5qy+ZGQCAw8PFgIfAgUOQ2hpbmEgU2hpcHBpbmdkZAIEDw8WAh8CBRLorr7lpIfkuqTmjqXljZXotLlkZAIFDw8WAh8CBQUzMC4wMGRkAgYPDxYCHwIFBiZuYnNwO2RkAgIPDxYCHgdWaXNpYmxlaGRkGAIFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBQdidG5OZXh0BQlidG5DYW5jZWwFB2d2UXVlcnkPPCsACgEIAgFks1bK51E9YLJLa++RataORXBBbnU="
// */
web_reg_save_param("Siebel_Analytic_ViewState10",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
//Correlation comment - Do not change!Original value='I//mND' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_3",
"LB=\"__EVENTVALIDATION\" value=\"",
"RB=\"",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/OrderPay.aspx*",
LAST);
web_url("OrderPay.aspx",
"URL=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t38.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("base.css_2",
"URL=http://192.168.200.249/EPay/css/base.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t39.inf",
LAST);
web_url("usercenter.css_2",
"URL=http://192.168.200.249/EPay/css/usercenter.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t40.inf",
LAST);
web_url("15.gif",
"URL=http://192.168.200.249/EPay/images/15.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t42.inf",
LAST);
web_url("16.gif",
"URL=http://192.168.200.249/EPay/images/16.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
web_url("WebResource.axd_2",
"URL=http://192.168.200.249/epay/WebResource.axd?d=JbgjsqIYckRSs8Wxm7pDtA2&t=633802920069218315",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t41.inf",
LAST);
web_concurrent_start(NULL);
web_url("ucdot7.gif",
"URL=http://192.168.200.249/EPay/images/ucdot7.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t43.inf",
LAST);
web_url("mywork_bg.png_2",
"URL=http://192.168.200.249/EPay/images/mywork_bg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t44.inf",
LAST);
web_url("htlogo.jpg",
"URL=http://192.168.200.249/EPay/images/htlogo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t45.inf",
LAST);
web_url("ucdot10.gif",
"URL=http://192.168.200.249/EPay/images/ucdot10.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t46.inf",
LAST);
web_concurrent_end(NULL);
/* Request with GET method to URL "http://192.168.200.249/favicon.ico" failed during recording. Server response : 404*/
/* Request with GET method to URL "http://192.168.200.249/EPay/images/new_header_bg2.gif;" failed during recording. Server response : 404*/
web_concurrent_start(NULL);
web_url("ucdot8.gif",
"URL=http://192.168.200.249/EPay/images/ucdot8.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t48.inf",
LAST);
web_url("ucdot9.gif",
"URL=http://192.168.200.249/EPay/images/ucdot9.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t49.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("确认缴费", LR_AUTO);
return 0;
}
Action3()
{
lr_think_time(30);
web_set_max_html_param_len("152800");
//Correlation comment - Do not change!Original value='Bd8hBExQXBO3cYxOFiyhnKbGdev9OotVZMzOZY7INHPWjuQkZLjnSW1y2bsD%2f0HONh21nhEZu%2bkyr47ZdoHr%2b%2fLnYgxCVy6AL3rIC1mJQo%2bFaeAEurigyWaoODQHdzpmkro0bDbMIXzsqPVkkvlL9l3M1uekJjefXjqx6NR4zVdQuHPscyttOmRcvxxberJNLOZn7Ks0%2bbcJaTILyPcv3r6IyKWRdYEN5jaYnI%2fGjgoUtRkn4GCqYMgTlivx47%2bcc0q8Zr%2fYZbI%2bVjlfRPQwv%2fikd3RLN%2f42w1%2fSKDJBSOJ62TtLQ0d3xOZ8uk6YsI21tib0ESsfLpWkSElMyajAXX%2fHpSVxNPFPSI7%2fP3GFG98hTE5xgZRh7yXwYsup2%2f9SgmOYyTlob6Bv4%2b3EDgVEGe0%2bWbXAbtFCIjY0J20Bzy3zVKyA0FRTgREOVYgmUSCXNMVLDZgOkanJclb62tGphWZbqpbMkk3TZtGCWsHdfKmfLV2u8r9Faas9Vjjv0W1TDQao9FkM8qAkTyakLHxjUxOh%2bx3GMJxJkonOoPbTaKkRxU4MuWKBjgc9mP0%2fdybhClKGRNaAzyOHusX4egL2vedYh8WXgWSC%2b0BalK31LaYXhHJKwXY3CcB8WUM%2fLb60%2bXEHdFVVFBVxZtxtr7LKmiNi3KTYtoggNd0GprGzdQB3EuOc49NATs%2b3iA7Qj6c2%2fF0nK3fWyBn0VcvZO%2bLrCB81mE824Rizi9x0gzKEr%2fVbupIxNiJQItyIIvn%2f2Wl8P%2bYPlG6gwBz73Frq13ORNXxTJJbXQATSkmdmEj9dM5Je7zg5%2fGc5QbD9cNqkXgdGhXSeOzZL%2bkuNNDXLlMBQY' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=order=",
"RB=%3d%3d",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/BizApply.aspx*",
LAST);
lr_start_transaction("确认缴费");
web_submit_data("BizApply.aspx_3",
"Action=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.200.249/eir/trailer/BizApply.aspx",
"Snapshot=t36.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
"Name=__SCROLLPOSITIONX", "Value=0", ENDITEM,
"Name=__SCROLLPOSITIONY", "Value=0", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__EVENTVALIDATION", "Value={CorrelationParameter_1}", ENDITEM,
"Name=ddlCarrier$DropDownList1", "Value=37", ENDITEM,
"Name=txtBookingNo", "Value=", ENDITEM,
"Name=hfCheckCode", "Value=0", ENDITEM,
"Name=TextBoxValidateCode", "Value=", ENDITEM,
"Name=gvBooking$ctl01$chkSelectAll", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$chkSelect", "Value=on", ENDITEM,
"Name=gvBooking$ctl02$hidEIR_DETAIL_SEQ", "Value={EIR_DETAIL_SEQ}", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_SEQ", "Value=37", ENDITEM,
"Name=gvBooking$ctl02$hidOWNER_CODE", "Value=China Shipping", ENDITEM,
"Name=gvBooking$ctl02$hidMODIFY_DATETIME", "Value=2011-08-18 14:08:09.196562", ENDITEM,
"Name=btnBatchConfirm", "Value=确认缴费", ENDITEM,
LAST);
lr_think_time(50);
/* Registering parameter(s) from source task id 78
// {Siebel_Analytic_ViewState10} = "/wEPDwUJODE5MjA0MjQ0D2QWAgIBD2QWAgIBDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIBZBYCZg9kFgQCAQ9kFg5mDw8WAh4EVGV4dAUFMTE5MDdkZAIBDw8WAh8CBRMyMDExLzEwLzExIDEzOjQxOjQzZGQCAg9kFgICAQ8PFgIfAgUG5LuY5qy+ZGQCAw8PFgIfAgUOQ2hpbmEgU2hpcHBpbmdkZAIEDw8WAh8CBRLorr7lpIfkuqTmjqXljZXotLlkZAIFDw8WAh8CBQUzMC4wMGRkAgYPDxYCHwIFBiZuYnNwO2RkAgIPDxYCHgdWaXNpYmxlaGRkGAIFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBQdidG5OZXh0BQlidG5DYW5jZWwFB2d2UXVlcnkPPCsACgEIAgFks1bK51E9YLJLa++RataORXBBbnU="
// */
web_reg_save_param("Siebel_Analytic_ViewState10",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
//Correlation comment - Do not change!Original value='I//mND' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_3",
"LB=\"__EVENTVALIDATION\" value=\"",
"RB=\"",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/OrderPay.aspx*",
LAST);
web_url("OrderPay.aspx",
"URL=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t38.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("base.css_2",
"URL=http://192.168.200.249/EPay/css/base.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t39.inf",
LAST);
web_url("usercenter.css_2",
"URL=http://192.168.200.249/EPay/css/usercenter.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t40.inf",
LAST);
web_url("15.gif",
"URL=http://192.168.200.249/EPay/images/15.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t42.inf",
LAST);
web_url("16.gif",
"URL=http://192.168.200.249/EPay/images/16.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
web_url("WebResource.axd_2",
"URL=http://192.168.200.249/epay/WebResource.axd?d=JbgjsqIYckRSs8Wxm7pDtA2&t=633802920069218315",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t41.inf",
LAST);
web_concurrent_start(NULL);
web_url("ucdot7.gif",
"URL=http://192.168.200.249/EPay/images/ucdot7.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t43.inf",
LAST);
web_url("mywork_bg.png_2",
"URL=http://192.168.200.249/EPay/images/mywork_bg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t44.inf",
LAST);
web_url("htlogo.jpg",
"URL=http://192.168.200.249/EPay/images/htlogo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t45.inf",
LAST);
web_url("ucdot10.gif",
"URL=http://192.168.200.249/EPay/images/ucdot10.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t46.inf",
LAST);
web_concurrent_end(NULL);
/* Request with GET method to URL "http://192.168.200.249/favicon.ico" failed during recording. Server response : 404*/
/* Request with GET method to URL "http://192.168.200.249/EPay/images/new_header_bg2.gif;" failed during recording. Server response : 404*/
web_concurrent_start(NULL);
web_url("ucdot8.gif",
"URL=http://192.168.200.249/EPay/images/ucdot8.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t48.inf",
LAST);
web_url("ucdot9.gif",
"URL=http://192.168.200.249/EPay/images/ucdot9.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.200.249/EPay/OrderPay/OrderPay.aspx?mark=&order={CorrelationParameter_2}%3d%3d",
"Snapshot=t49.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("确认缴费", LR_AUTO);
return 0;
}
回复 10# ljj149850508
是这样的,我前面有做参数化。想问下,是不是在controller中执行场景时,是不是每个Vuger都会取不同的参数,如果取不同的参数值,就会产生不同的定单,在取CorrelationParameter_2这个值的时候也会能取到不同的值 回复 18# lingyun1104
我的测试业务中不同的用户取的业务数据是不同的,如果采用不同的用户登录,就会与录制的数据有很大的不同。所以想采用同一个用户对不同的单进行缴费。 回复 10# ljj149850508
多谢这个朋友回答:
这里不可以帖出来代码,因此我在博客中描述了一下,你给看下:
链接 是:
http://www.51testing.com/?uid-40486-action-viewspace-itemid-247190
页:
[1]
2