最忌讳的是抱着希望的猜测,一切凭行事而让思考停止。

LR关联:WebTours中如何手动在HTML源文件中定位Session ID

上一篇 / 下一篇  2009-09-09 20:22:23

LR中自带了一个Samples Web.
当录制其登录过程后回放,如果没有做好关联Session ID,回放将失败。
如何手动在HTML源文件中定位Session ID的位置?
一般这类东东都放在一个<input type=hidden name=**** value=Session ID>中,通过在源文件中查找“input type=hidden”应该能很快找到。

&?&t.x(^8Z4g0
首先,通过浏览器菜单“查看”-->“源文件”
<HTML>
<HEAD>
<title>Web Tours</title>
<frameset rows = "65,*" border=1 bordercolor=#E0E7F1>
<frame. name="header" src=header.html scrolling=no noresize marginheight=2 marginwidth=2>
<frame. name="body" src=welcome.pl?signOff=true scrolling=auto noresize marginheight=2 marginwidth=2>
</frameset>
</head>
</html>
这里有个frameset,将页面一分为二(上下),可以分别打开看看
http://127.0.0.1:1080/WebTours/header.html
其HTML源文件显示只有一含hp_logo图片的table,非常简单。
http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true
其HTML源文件中又有一个frameset将页面左右一分为二。
http://127.0.0.1:1080/WebTours/nav.pl?in=home
为登录界面,在这个页面里可以很快定位到Session ID
http://127.0.0.1:1080/WebTours/home.html
。。。。。。。。。。。

B-^([f'y Sk0

A t;X-wc/t6j0

V E;Lr%p.U3a/N0

TAG:

HMILYJCH 人淡如菊 引用 删除 hmilyjch   /   2009-09-11 10:22:43
hisanji
 

评分:0

我来说两句

日历

« 2024-04-24  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 10174
  • 日志数: 18
  • 建立时间: 2009-09-07
  • 更新时间: 2009-12-27

RSS订阅

Open Toolbar