51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1424|回复: 3
打印 上一主题 下一主题

[原创] LR创建数据,为什么录制代码后save button没有?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-11-15 09:59:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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部分作了参数化,回放成功,但是数据创建不了
请帮忙
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    2#
    发表于 2011-11-27 00:47:56 | 只看该作者
    代码比较难看
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    3#
    发表于 2011-11-27 00:49:12 | 只看该作者
    代码比较难看
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    4#
    发表于 2011-11-27 00:49:14 | 只看该作者
    代码比较难看
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-24 02:46 , Processed in 0.130372 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表