51Testing软件测试论坛
标题:
貌似很简单的问题你能解决吗
[打印本页]
作者:
chm19890228
时间:
2012-9-19 14:23
标题:
貌似很简单的问题你能解决吗
真郁闷了,为什么录制了登录的脚本后在脚本中却找不到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;
}
作者:
chm19890228
时间:
2012-9-19 14:27
顶一下,各位踊跃提出建议了,在线等
作者:
chm19890228
时间:
2012-9-19 14:27
顶一下,各位踊跃提出建议了,在线等
作者:
Donly
时间:
2012-9-19 16:12
你这个是登录的url没录制到吧,用httpwatch查看下登录的请求,自己手工添加进去吧
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2