51Testing软件测试论坛
标题:
LR创建数据,为什么录制代码后save button没有?
[打印本页]
作者:
Merry.wang
时间:
2011-11-15 09:59
标题:
LR创建数据,为什么录制代码后save button没有?
web_submit_data("WebfleetUserEdit.aspx",
"Action=http://fleettestserver:89/ASPX/SystemUser/WebfleetUserEdit.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://fleettestserver:89/ASPX/SystemUser/WebfleetUsers.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=hideEnableShowSubmiting", "Value=false", ENDITEM,
"Name=__EVENTTARGET", "Value=ctl00$cphTitleBody$chklUserRoles$1", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState5}", ENDITEM,
"Name=ctl00$cphTitleBody$dateTxtStartDate_PU_PN_MYP_PN_Month", "Value=11", ENDITEM,
"Name=ctl00$cphTitleBody$dateTxtStartDate_PU_PN_MYP_PN_Year", "Value=2011", ENDITEM,
"Name=ctl00$cphTitleBody$dateTxtStartDate_PU_PN_SelDate", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$dateTxtStartDate_PU_PN_MonthView", "Value=2011|11", ENDITEM,
"Name=ctl00$Header1$ddlUserRoles", "Value=13", ENDITEM,
"Name=ctl00$cphTitleBody$txtFirstName", "Value={firstname}", ENDITEM,
"Name=ctl00$cphTitleBody$txtLastName", "Value={lastname}", ENDITEM,
"Name=ctl00$cphTitleBody$txtEmployeeID", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtPosition", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$dateTxtStartDate", "Value={startdate}", ENDITEM,
"Name=ctl00$cphTitleBody$chklUserRoles$1", "Value=on", ENDITEM,
"Name=ctl00$cphTitleBody$txtLogin", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtPassword", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtPasswordConfirm", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$ddlAccess", "Value=Y", ENDITEM,
"Name=ctl00$cphTitleBody$ddlReadOnly", "Value=N", ENDITEM,
"Name=ctl00$cphTitleBody$ddlReset", "Value=None", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetPhone$txtArea", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetPhone$txtPhone", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetFax$txtArea", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetFax$txtPhone", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtMobile", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetEmail$txtPhone", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtStreet", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtSuburb", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$ddlState", "Value=ACT", ENDITEM,
"Name=ctl00$cphTitleBody$txtPostCode", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$chkSameAddress", "Value=on", ENDITEM,
LAST);
lr_start_transaction("save");
web_submit_form("WebfleetUserEdit.aspx_2",
"Snapshot=t6.inf",
ITEMDATA,
"Name=ctl00$Header1$ddlUserRoles", "Value=13", ENDITEM,
"Name=ctl00$cphTitleBody$txtFirstName", "Value={firstname}", ENDITEM,
"Name=ctl00$cphTitleBody$txtLastName", "Value={lastname}", ENDITEM,
"Name=ctl00$cphTitleBody$txtEmployeeID", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtPosition", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$dateTxtStartDate", "Value={startdate}", ENDITEM,
"Name=ctl00$cphTitleBody$chklUserRoles$0", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$chklUserRoles$2", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$chklUserRoles$1", "Value=on", ENDITEM,
"Name=ctl00$cphTitleBody$txtLogin", "Value=zhaoxin", ENDITEM,
"Name=ctl00$cphTitleBody$txtPassword", "Value=111111", ENDITEM,
"Name=ctl00$cphTitleBody$txtPasswordConfirm", "Value=111111", ENDITEM,
"Name=ctl00$cphTitleBody$ddlAccess", "Value=Y", ENDITEM,
"Name=ctl00$cphTitleBody$ddlReadOnly", "Value=N", ENDITEM,
"Name=ctl00$cphTitleBody$ddlReset", "Value=None", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetPhone$txtArea", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetPhone$txtPhone", "Value=11111111", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetFax$txtArea", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetFax$txtPhone", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$txtMobile", "Value=", ENDITEM,
"Name=ctl00$cphTitleBody$WebfleetEmail$txtPhone", "Value=ddd@ddd.com", ENDITEM,
"Name=ctl00$cphTitleBody$txtStreet", "Value=qqq", ENDITEM,
"Name=ctl00$cphTitleBody$txtSuburb", "Value=ddd", ENDITEM,
"Name=ctl00$cphTitleBody$ddlState", "Value=ACT", ENDITEM,
"Name=ctl00$cphTitleBody$txtPostCode", "Value=1234", ENDITEM,
"Name=ctl00$cphTitleBody$chkSameAddress", "Value=on", ENDITEM,
LAST);
lr_end_transaction("save",LR_AUTO);
return 0;
}
我对edit2部分作了参数化,回放成功,但是数据创建不了
请帮忙
作者:
msnshow
时间:
2011-11-27 00:47
代码比较难看
作者:
msnshow
时间:
2011-11-27 00:49
代码比较难看
作者:
msnshow
时间:
2011-11-27 00:49
代码比较难看
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2