51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[求助] 貌似很简单的问题你能解决吗

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-9-19 14:23:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
真郁闷了,为什么录制了登录的脚本后在脚本中却找不到username和password呢?找不到无法参数化啊。以下Action就是登录的脚本,哪位高手能帮忙加以分析,支招。小弟不胜感激!

Action()
{

        lr_think_time(39);

        web_submit_data("formLogin",
                "Action=http://idpserver10.zc.cinda.ccb/idpServer/formLogin",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://idpserver10.zc.cinda.ccb/idpServer/login",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("loginSubmit",
                "Action=http://idpserver10.zc.cinda.ccb/idpServer/loginSubmit",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://idpserver10.zc.cinda.ccb/idpServer/login",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=lt", "Value=LT-1-Clkp9y9LKXQcdiSVIWQZUtTlHLHrbx6zVd2-20", ENDITEM,
                "Name=service", "Value=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp", ENDITEM,
                "Name=oeId", "Value=10013333", ENDITEM,
                EXTRARES,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/images/nav_bg.gif", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!Home.swf?name=1233897470724!Home.swf", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/images/nav_on_left.gif", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/images/nav_on.gif", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/images/center.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/images/nav_on_right.gif", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/images/right.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                LAST);

        web_url("portalContent.jsp",
                "URL=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portalContent.jsp?authCode=m2&styleCss=1233897470724!Home.css",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20",
                "Snapshot=t5.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=images/comment_footer_bg.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/portal.jsp?ticket=ST-1-ygFszttZ5au1uGEl0RU5BqvzFpVgpnfGS9G-20", ENDITEM,
                "Url=/gumPortalWeb/public/LoadFileServlet/1233897470724!index_n_line2.jpg?name=1233897470724!index_n_line2.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!1364.html?name=1233897470724!m2!1364.html", ENDITEM,
                "Url=/gumPortalWeb/public/LoadFileServlet/1233897470724!dy_ear_bg.jpg?name=1233897470724!dy_ear_bg.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!501.html?name=1233897470724!m2!501.html", ENDITEM,
                LAST);

        web_url("index.jsp",
                "URL=http://portal10.zc.cinda.ccb/gumWeb/index.jsp?ticket=ST-1-JqltoHL3LHy0cOA5slPTOG7wyplImIcfPDp-20",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://idpserver10.zc.cinda.ccb/idpServer/login?service=http%3A%2F%2Fportal10.zc.cinda.ccb%3A80%2FgumWeb%2Findex.jsp&renew=false",
                "Snapshot=t6.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=../gumPortalWeb/public/LoadFileServlet/1233897470724!index_n_ico_01.jpg?name=1233897470724!index_n_ico_01.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!501.html?name=1233897470724!m2!501.html", ENDITEM,
                LAST);

        web_url("index.jsp_2",
                "URL=http://portal10.zc.cinda.ccb/gtaskctr/index.jsp?ticket=ST-1-Pzdy92Wpb3p36nIjnyfvBqRgnGp91n6QLi0-20",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://idpserver10.zc.cinda.ccb/idpServer/login?service=http%3A%2F%2Fportal10.zc.cinda.ccb%3A80%2Fgtaskctr%2Findex.jsp&renew=false",
                "Snapshot=t7.inf",
                "Mode=HTML",
                LAST);

        web_url("contentplayer.js",
                "URL=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/js/contentplayer.js",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html",
                "Snapshot=t8.inf",
                "Mode=HTML",
                LAST);

        web_url("scrollview.js",
                "URL=http://portal10.zc.cinda.ccb/gumPortalWeb/gportal/portal/js/scrollview.js",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html",
                "Snapshot=t9.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/gpubDataWeb/pubDataServlet/gcmsData/20012060/10/04/11/attachments/090310-jd-02small.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html", ENDITEM,
                "Url=/gpubDataWeb/pubDataServlet/gcmsData/20012060/10/04/11/attachments/090324-jd-01-01small.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html", ENDITEM,
                "Url=/gpubDataWeb/pubDataServlet/gcmsData/20012060/10/04/11/attachments/200904141small.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html", ENDITEM,
                "Url=/gpubDataWeb/pubDataServlet/gcmsData/20012060/10/04/11/attachments/090312-jd-01small.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html", ENDITEM,
                "Url=/gpubDataWeb/pubDataServlet/gcmsData/20012060/10/05/12/attachments/8a82849f288a713101288a8e43300005.JPG", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html", ENDITEM,
                "Url=/gumPortalWeb/public/LoadFileServlet/1233897470724!title_index_n_1.jpg?name=1233897470724!title_index_n_1.jpg", "Referer=http://portal10.zc.cinda.ccb/gumPortalWeb/public/LoadFileServlet/1233897470724!m2!361.html?name=1233897470724!m2!361.html", ENDITEM,
                LAST);

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

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-9-19 14:27:14 | 只看该作者
顶一下,各位踊跃提出建议了,在线等
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2012-9-19 14:27:30 | 只看该作者
顶一下,各位踊跃提出建议了,在线等
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2012-9-19 16:12:05 | 只看该作者
你这个是登录的url没录制到吧,用httpwatch查看下登录的请求,自己手工添加进去吧
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-27 15:39 , Processed in 0.074166 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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