51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2097|回复: 1
打印 上一主题 下一主题

[原创] 机器上装了.Net2005后LR录制脚本就是空的了?大家赶紧来帮个忙啊

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-6-4 09:43:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我机器是win2003的,打了SP2补丁,刚开始只装了LR的时候是可以录制脚本的,但后来由于我要装.Net2005,装完后就发现LR录制的脚本是空的。
我装的是LR8.0 而且更奇怪的是,我同样的东西装在另外一台机器上是可以用的,但就在我现在这个机器上不行,大家有没有碰到类似的问题,赶紧帮帮忙啊。
希望各个专家也来给点意见啊。!!!
期待中......

比如我用baidu或者sohu测试,录制后的结果就是#include "web_api.h"

Action()
{
web_add_cookie("BAIDUID=3E8E4183E407E344F0CDEB820AEF45A6:FG=1; DOMAIN=www.baidu.com");

web_add_cookie("BDSTAT=911c614796b3ee626059252dd42a2834349b033b5ab5c9ea15ce36d3d4397d39; DOMAIN=www.baidu.com");

web_add_cookie("BD_UTK_DVT=1; DOMAIN=www.baidu.com");

web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);

return 0;
}
产生的日志是:
* * * Recording Options Dump Start * * *

Web Recorder version : 8.0.0.1199
Recording Mode: HTML-based script
Correlation is enabled system wide
Not recording headers
Not excluding content types
Do not record this content types as a resource:
text/html
text/xml
Reset context between actions
Record non-HTML elements in current HTML function
Protocol Type: QTWeb
Using the default browser
Browser Type: Internet Explorer 6.0
Obtaining proxy settings from recording browser
Restoring proxy settings immediately


* * * Recording Options Dump End * * *


*** [tid=6bc Action 2] Sending request to host www.baidu.com:80 ( 3/6/2008 23:48:21 )

"GET / HTTP/1.1\r\n"
"Accept: */*\r\n"
"Connection: Keep-Alive\r\n"
"Accept-Language: zh-cn\r\n"
"UA-CPU: x86\r\n"
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; QQDownload 1.7; .NET CLR 1"
".1.4322; .NET CLR 2.0.50727)\r\n"
"Cookie: BAIDUID=3E8E4183E407E344F0CDEB820AEF45A6:FG=1; BDSTAT=911c614796b3ee626059252dd42a2834"
"349b033b5ab5c9ea15ce36d3d4397d39; BD_UTK_DVT=1\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"\r\n"


*** [tid=6bc Action 2] Receiving response from host www.baidu.com:80 ( 3/6/2008 23:48:21 )

"HTTP/1.1 200 OK\r\n"
"Date: Tue, 03 Jun 2008 15:48:26 GMT\r\n"
"Server: BWS/1.0\r\n"
"Content-Length: 1526\r\n"
"Content-Type: text/html\r\n"
"Cache-Control: private\r\n"
"Content-Encoding: gzip\r\n"
"\r\n"
tid=6bc:
Start Frames Hierarchy Tree Dump
The Node has no URL
End Frames Hierarchy Tree Dump


*** [tid=6bc Action 2] Recording Function ( 3/6/2008 23:48:21 )

web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);


*** [tid=6bc Action 0] Recording Function ( 3/6/2008 23:48:21 )

web_add_cookie("BAIDUID=3E8E4183E407E344F0CDEB820AEF45A6:FG=1; DOMAIN=www.baidu.com");


*** [tid=6bc Action 0] Recording Function ( 3/6/2008 23:48:21 )

web_add_cookie("BDSTAT=911c614796b3ee626059252dd42a2834349b033b5ab5c9ea15ce36d3d4397d39; DOMAIN=www.baidu.com");


*** [tid=6bc Action 0] Recording Function ( 3/6/2008 23:48:21 )

web_add_cookie("BD_UTK_DVT=1; DOMAIN=www.baidu.com");


*** [tid=6bc Action 2] Receiving response from host www.baidu.com:80 ( 3/6/2008 23:48:21 )

" <html> <head> <meta http-equiv=Content-Type content=\"text/html;charset=gb2312\"> <title>百度一下"
",你就知道      </title> <style>body{margin:4px 0}p{margin:0;padding:0}img{border:0}td,p,#u{fon"
"t-size:12px}#b,#u,#l td,a{font-family:arial}#kw{font:16px Verdana;height:1.78em;padding-top:2p"
"x}#b{height:30px;padding-top:4px}#b,#b a{color:#77c}#u{padding-right:10px;line-height:19px;tex"
"t-align:right;margin:0 0 3px !important;margin:0 0 10px}#sb{height:2em;width:5.6em}#km{height:"
"50px}#km a{font-family:宋体}#l{margin:0 0 5px 15px}#l td{padding-left:107px}p,table{width:650p"
"x;border:0}#l td,#sb,#km{font-size:14px}#l a,#l b{margin-right:1.14em}a{color:#00c}a:active{co"
"lor:#f60}#hp{position:absolute;margin-left:6px} </style> </head>\n"
" <body> <div id=u> </div> <center> <a href=http://hi.baidu.com/baidu/ target=_blank> <img src=http:/"
"/www.baidu.com/img/baidu.gif width=174 height=59 alt=\"点此进入 百度空间\"> </a> <br> <br> <br> <br"
"> <table cellpadding=0 cellspacing=0 id=l> <tr> <td> <div id=m> <a onclick=s(this) href=http://news"
".baidu.com>新 闻 </a> <b>网 页 </b> <a onclick=s(this) href=http://tieba.baidu.com>贴&nb"
"sp;吧 </a> <a onclick=s(this) href=http://zhidao.baidu.com>知 道 </a> <a onclick=s(this) href"
"=http://mp3.baidu.com>MP3 </a> <a onclick=s(this) href=http://image.baidu.com>图 片 </a> <a o"
"nclick=s(this) href=http://video.baidu.com>视 频 </a> </div> </td> </tr> </table>\n"
" <table cellpadding=0 cellspacing=0 style=\"margin-left:15px\"> <tr valign=top> <td style=\"heigh"
"t:62px;padding-left:92px\" nowrap> <form name=f action=/s> <input type=text name=wd id=kw size=4"
"2 maxlength=100> <script>var w=document.f.wd;w.focus();document.getElementById(\"u\").innerHTML"
"=' <a href=\"http://passport.baidu.com/?login&tpl=mn&u='+escape(location.href)+'\">登录 </a>';fu"
"nction s(o){if(w.value.length>0){var h=o.href;var q=encodeURIComponent(w.value);if(h.indexOf(\""
"q=\")!=-1){o.href=h.replace(new RegExp(\"q=[^&$]*\"),\"q=\"+q)}else{o.href+=\"?q=\"+q}}};(func"
"tion(){if(new RegExp(\"q=([^&]+)\").test(location.search)){w.value=decodeURIComponent(RegExp.$"
"1)}})() </script> <input type=submit value=百度一下 id=sb>  <span id=hp> <a href=/search/jiq"
"iao.html>帮助 </a> <br> <a href=/gaoji/advanced.html>高级 </a> </span> </form> </td> </tr> </table>\n"
" <p id=km>  <a href=http://hi.baidu.com>空间 </a>  &brvbar;  <a href=/more/>更多>> </a> </p>\n"
" <p style=height:60px> </p>\n"
" <p style=height:30px> <a onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePag"
"e('http://www.baidu.com')\" href=http://utility.baidu.com/traf/click.php?id=215&url=http://www"
".baidu.com>把百度设为首页 </a> </p> <p style=height:14px> <a href=http://jingjia.baidu.com>企业推广"
" </a> &brvbar; <a href=http://top.baidu.com>搜索风云榜 </a> &brvbar; <a href=/home.html>关于百度 </a> &brvbar; <a href"
"=http://ir.baidu.com>About Baidu </a> </p> <p id=b>&copy;2008 Baidu <a href=http://www.baidu.com/"
"duty/>使用百度前必读 </a> <a href=http://www.miibeian.gov.cn target=_blank>京ICP证030173号 </a> "
" <img src=http://gimg.baidu.com/img/gs.gif> </p> </center> </body> </html> <!--9e4e2f483832c794-->"


* * * Finished recording ( 3/6/2008 23:52:42 ) * * *
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-6-4 09:48:40 | 只看该作者
搬个板凳抬头看。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-10 05:42 , Processed in 0.087496 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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