|
4#
楼主 |
发表于 2009-9-30 10:11:20
|
只看该作者
回复 3# 的帖子
Action()
{
/* Registering parameter(s) from source task id 5
// {Siebel_Analytic_ViewState4} = "/=="
// */
web_add_auto_header("Accept-Encoding",
"gzip, deflate");
web_add_auto_header("Accept-Language",
"zh-cn");
web_add_auto_header("User-Agent",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.5.30428; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)");
//LoadRunder自动生成
web_reg_save_param("Siebel_Analytic_ViewState4",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
lr_think_time(6);
web_submit_data("default.aspx_2",
"Action=http://localhost/CRMPerformanceTest/default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/CRMPerformanceTest/default.aspx",
"Snapshot=t39.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=ddlParent", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=ddlParent", "Value= -- Orbitel", ENDITEM,
"Name=txtParentDealerID", "Value=", ENDITEM,
"Name=txtDealerTypeID", "Value=", ENDITEM,
"Name=txtDealerName", "Value=", ENDITEM,
"Name=txtProvisionName", "Value=", ENDITEM,
"Name=txtDealerNameM", "Value=", ENDITEM,
"Name=txtProvisionNameM", "Value=", ENDITEM,
"Name=ddlParentT", "Value=ORBITEL", ENDITEM,
"Name=txtTarget", "Value=", ENDITEM,
"Name=txtDealerID", "Value=", ENDITEM,
LAST);
lr_start_transaction("add");
lr_think_time(7);
web_submit_data("default.aspx_3",
"Action=http://localhost/CRMPerformanceTest/default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/CRMPerformanceTest/default.aspx",
"Snapshot=t40.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState4}", ENDITEM,
"Name=ddlParent", "Value= -- Orbitel", ENDITEM,
"Name=txtParentDealerID", "Value=1000150086", ENDITEM,
"Name=txtDealerTypeID", "Value=3", ENDITEM,
"Name=txtDealerName", "Value=DealerName", ENDITEM,
"Name=txtProvisionName", "Value=ProvisionName", ENDITEM,
"Name=btnSave", "Value=Save", ENDITEM,
"Name=txtDealerNameM", "Value=", ENDITEM,
"Name=txtProvisionNameM", "Value=", ENDITEM,
"Name=ddlParentT", "Value=ORBITEL", ENDITEM,
"Name=txtTarget", "Value=", ENDITEM,
"Name=txtDealerID", "Value=", ENDITEM,
LAST);
lr_end_transaction("add", LR_AUTO);
//新增完成以后,DealerID 才会回传到页面上,现在才能保存DealerID,为修改提供依据
我写的保存
web_reg_save_param("CurrentDealerID",
"LB/IC=txtDealerID",
"RB/IC=txtDealerID",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
lr_start_transaction("modify");
lr_think_time(20);
//自动生成的可以打印
lr_log_message("CurrentDealerID ID is : %s", lr_eval_string("{Siebel_Analytic_ViewState4}"));
//我写的打印不了
lr_log_message("CurrentDealerID ID is : %s", lr_eval_string("{CurrentDealerID}"));
lr_end_transaction("modify", LR_AUTO);
[ 本帖最后由 cexowyc 于 2009-9-30 10:22 编辑 ] |
|