51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2546|回复: 5
打印 上一主题 下一主题

[原创] 用lr录制丙个不同的帐户进行在线充值,只成功了一个,另一个没有成功,

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-4-13 16:50:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
ACTION:
/*点击登录,进入登录页面*/

        lr_think_time(35);

//Correlation comment - Do not change!Original value='bottom' Name ='CorrelationParameter_1'

        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_1",
                "LB=a href=\"/",
                "RB=A",
                SEARCH_FILTERS,
                "Scope=Body",
                "RequestUrl=*/bottomAction_register_auction.do*",
                LAST);

        web_url("bottomAction_register_auction.do",
                "URL=http://test.epailive.com/bottomAction_register_auction.do?channel=1&fileName=login.jsp",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/index.shtml",
                "Snapshot=t3.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=/images/login-pg-bigbgline1.gif", "Referer=http://test.epailive.com/bottomAction_register_auction.do?channel=1&fileName=login.jsp", ENDITEM,
                "URL=/images/menu7_03_h.gif", "Referer=http://test.epailive.com/bottomAction_register_auction.do?channel=1&fileName=login.jsp", ENDITEM,
                "URL=/images/login-pg-introRgtPic1.gif", "Referer=http://test.epailive.com/bottomAction_register_auction.do?channel=1&fileName=login.jsp", ENDITEM,
                "URL=/images/login-pg-txinputBg1.gif", "Referer=http://test.epailive.com/bottomAction_register_auction.do?channel=1&fileName=login.jsp", ENDITEM,
                "URL=/images/vicon_correct.gif", "Referer=http://test.epailive.com/bottomAction_register_auction.do?channel=1&fileName=login.jsp", ENDITEM,
                LAST);

/*½øÈëµÇ¼²Ù×÷*/

        lr_think_time(6);

        web_submit_data("loginAction_login_auction.do",
                "Action=http://test.epailive.com/auction/loginAction_login_auction.do",
                "Method=POST",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/{CorrelationParameter_1}Action_register_auction.do?channel=1&fileName=login.jsp",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=sessionId", "Value=", ENDITEM,
                "Name=isOnline", "Value=", ENDITEM,
                "Name=baseMemberInfo.memberLoginName", "Value={User}", ENDITEM,
                "Name=baseMemberInfo.memberLoginPw", "Value={Pwd}", ENDITEM,
                "Name=rememberLoginName", "Value=on", ENDITEM,
                LAST);

        web_submit_data("loginAction_login_auction.do_2",
                "Action=http://test.epailive.com/auction/loginAction_login_auction.do",
                "Method=POST",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/auction/loginAction_login_auction.do",
                "Snapshot=t5.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=sessionId", "Value=", ENDITEM,
                "Name=isOnline", "Value=", ENDITEM,
                "Name=baseMemberInfo.memberLoginName", "Value=abc1@epai.hk", ENDITEM,
                "Name=baseMemberInfo.memberLoginPw", "Value=a123456", ENDITEM,
                "Name=rememberLoginName", "Value=on", ENDITEM,
                EXTRARES,
                "URL=../images/epai-main-membrWelcm.gif", "Referer=http://test.epailive.com/indexAction_index.do?channel=1", ENDITEM,
                "URL=../images/epai-main-videolist-tit-hover.gif", "Referer=http://test.epailive.com/indexAction_index.do?channel=1", ENDITEM,
                LAST);

/*进入登录操作*/

        lr_think_time(16);

        web_url("index.shtml_2",
                "URL=http://test.epailive.com/member/index.shtml",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/indexAction_index.do?channel=1",
                "Snapshot=t6.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=../images/my-epai_mainbac_03.jpg", ENDITEM,
                "URL=../images/my-epai_maincollec_06.jpg", ENDITEM,
                "URL=../images/my-epai_mainbott_03.jpg", ENDITEM,
                LAST);

/*进入我的易拍全球*/

        lr_think_time(7);

        web_url("帐户管理",
                "URL=http://test.epailive.com/member/myEpaiAccountAction_accountInfo_member.do?channel=7",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/member/index.shtml",
                "Snapshot=t7.inf",
                "Mode=HTML",
                LAST);

/*进入资金管理页面*/

        lr_think_time(10);

        web_url("帐户管理",
                "URL=http://test.epailive.com/memberAccountAction_account_member.do",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/member/myEpaiAccountAction_accountInfo_member.do?channel=7",
                "Snapshot=t8.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=/datepicker/skin/WdatePicker.css", "Referer=http://test.epailive.com/member/memberAccountAction_consume1_member.do", ENDITEM,
                "URL=/images/upcoming-main-7_03.gif", "Referer=http://test.epailive.com/member/memberAccountAction_consume1_member.do", ENDITEM,
                "URL=/images/Jintian_03.gif", "Referer=http://test.epailive.com/member/memberAccountAction_consume1_member.do", ENDITEM,
                "URL=/images/naironf3_9_03.gif", "Referer=http://test.epailive.com/member/memberAccountAction_consume1_member.do", ENDITEM,
                LAST);

        web_url("My97DatePicker.htm",
                "URL=http://test.epailive.com/datepicker/My97DatePicker.htm",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/memberAccountAction_account_member.do",
                "Snapshot=t9.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=lang/zh-cn.js", ENDITEM,
                "URL=skin/simple/datepicker.css", ENDITEM,
                "URL=skin/whyGreen/datepicker.css", ENDITEM,
                "URL=skin/default/datepicker.css", ENDITEM,
                "URL=skin/simple/navLeft_03.gif", ENDITEM,
                "URL=skin/simple/left.gif._05.gif", ENDITEM,
                "URL=skin/simple/navRight.gif_03.gif", ENDITEM,
                "URL=skin/simple/right_03.gif", ENDITEM,
                "URL=skin/simple/qs_03.gif", ENDITEM,
                LAST);

/*进入资金管理页*/

        lr_think_time(10);
       
        web_url("payAction_recharge_authorize.do",
                "URL=http://test.epailive.com/payAction_recharge_authorize.do",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/memberAccountAction_account_member.do",
                "Snapshot=t10.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=/images/zhifu_15.gif", ENDITEM,
                LAST);

/*进入充值页*/

/*开始充值*/

        lr_think_time(29);
       
        lr_start_transaction("³äÖµ¶¯×÷¿ªÊ¼");

        web_submit_data("smsSerivce_getVerifyCode.do",
                "Action=http://test.epailive.com/smsSerivce_getVerifyCode.do",
                "Method=POST",
                "TargetFrame=",
                "Referer=http://test.epailive.com/payAction_recharge_authorize.do",
                "Snapshot=t11.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=mobile", "Value=15011547116", ENDITEM,
                LAST);

/*开始充值*/

/*点击发送验证码*/

        lr_think_time(29);

        web_submit_data("payAction_verifyMobileVerifyCode_authorize.do",
                "Action=http://test.epailive.com/payAction_verifyMobileVerifyCode_authorize.do",
                "Method=POST",
                "TargetFrame=",
                "Referer=http://test.epailive.com/payAction_recharge_authorize.do",
                "Snapshot=t12.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=verifyCode", "Value=123456", ENDITEM,
                LAST);

        web_submit_data("payAction_rechargeSure_authorize.do",
                "Action=http://test.epailive.com/payAction_rechargeSure_authorize.do",
                "Method=POST",
                "TargetFrame=",
                "Referer=http://test.epailive.com/payAction_recharge_authorize.do",
                "Snapshot=t13.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=payVO.consumeType", "Value=1", ENDITEM,
                "Name=payVO.commerce", "Value=", ENDITEM,
                "Name=payVO.orderNo", "Value=00000000", ENDITEM,
                "Name=payVO.forwardUrl", "Value=member/memberAccountAction_account_member.do", ENDITEM,
                "Name=payVO.unionPrev", "Value=1064", ENDITEM,
                "Name=payVO.payMode", "Value=1", ENDITEM,
                "Name=payVO.whiteListId", "Value=100135", ENDITEM,
                "Name=bankCardType", "Value=0", ENDITEM,
                "Name=payVO.rapidMoney", "Value=1111", ENDITEM,
                "Name=payVO.verifiCode", "Value=123456", ENDITEM,
                "Name=payVO.unionMoney", "Value=", ENDITEM,
                LAST);

        web_url("memberAccountAction_account_member.do",
                "URL=http://test.epailive.com/member/memberAccountAction_account_member.do",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/payAction_recharge_authorize.do",
                "Snapshot=t14.inf",
                "Mode=HTML",
                LAST);

        web_url("My97DatePicker.htm_2",
                "URL=http://test.epailive.com/datepicker/My97DatePicker.htm",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://test.epailive.com/member/memberAccountAction_account_member.do",
                "Snapshot=t15.inf",
                "Mode=HTML",
                LAST);
       
        lr_end_transaction("充值 动作开始", LR_AUTO);

return 0;
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    开心
    2014-10-16 09:54
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2012-4-13 17:05:40 | 只看该作者
    点击发送验证码

    验证码都是一样的?
    回复 支持 反对

    使用道具 举报

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

    连续签到: 1 天

    [LV.7]测试师长

    3#
    发表于 2012-4-15 20:09:02 | 只看该作者
    应该是有修改程序,验证码不起作用吧
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
     楼主| 发表于 2012-5-7 14:38:20 | 只看该作者
    验证码我让开发写成了固定的了,每次点击发送,都是相同的验证码
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
     楼主| 发表于 2012-5-9 08:43:18 | 只看该作者
    望各位大侠,帮忙看一下
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
    发表于 2012-5-9 09:04:54 | 只看该作者
    不懂你们的业务不太好说啥
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-23 08:54 , Processed in 0.078255 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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