bayern10 发表于 2009-10-23 10:54:13

为什么改了脚本中提交的用户名密码,还是能跑通!?

哪位大侠帮个忙...为什么我在刚刚录制的脚本中把提交部分的用户名和密码改了,还是能跑通!?

iori 发表于 2009-10-23 10:58:32

把你的脚本发上来看看

bayern10 发表于 2009-10-23 11:02:51

Action()
{
       web_url("loginIndex.jsp",
               "URL=http://library.neibu.koolearn.com/loginIndex.jsp",
               "Resource=0",
               "RecContentType=text/html",
               "Referer=",
               "Snapshot=t1.inf",
               "Mode=HTML",
               EXTRARES,
               "Url=/images/front/head_bg.jpg", ENDITEM,
               "Url=/images/front/head_bg2.jpg", ENDITEM,
               "Url=/images/front/ge.jpg", ENDITEM,
               "Url=/images/front/head_bg3.jpg", ENDITEM,
               "Url=/images/front/dot5.jpg", ENDITEM,
               "Url=/images/front/head_bg4.jpg", ENDITEM,
               "Url=/images/front/dl.jpg", ENDITEM,
               LAST);

       web_submit_form("libraryLogin",
               "Snapshot=t2.inf",
               ITEMDATA,
               "Name=userName", "Value=gaozlib", ENDITEM,
               "Name=password", "Value=123123", ENDITEM,
               "Name=randNumber", "Value=1111", ENDITEM,
               "Name=button", "Value= ", ENDITEM,
               EXTRARES,
               "Url=/images/front/top.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/head_bg2.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/head_bg4.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/ge.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/join2.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/dot1.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/tabbg.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/tab2.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/txt3bg.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/tit1.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/btn1.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/dot2.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/txt1bg.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/head_bg.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/xin.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/txt4bg.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/top10_2.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/tit4.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/tit2.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               "Url=/images/front/top10_1.jpg", "Referer=http://library.neibu.koolearn.com/online/library.jsp", ENDITEM,
               LAST);

return 0;
}

bayern10 发表于 2009-10-23 11:04:23

上面红色部分...为什么改成错的.还是能跑的通呀...

lijian422202 发表于 2009-10-23 11:18:03

因为你没有做检查点。。

iori 发表于 2009-10-23 11:19:47

清除缓存试试

aman_cao 发表于 2009-10-23 11:37:12

当然能跑通了,先了解下LR关于pass和failed的判断。

bayern10 发表于 2009-10-23 11:37:29

谢谢楼上两位...

msnshow 发表于 2009-10-27 14:07:58

能跑通,只是HTTP的返回状态200OK,但实际上你并没有登陆成功,所你像楼上说的,需要加检查点
页: [1]
查看完整版本: 为什么改了脚本中提交的用户名密码,还是能跑通!?