51Testing软件测试论坛

标题: Execution Log是乱码 怎么解决呀 用的也是utf8了 [打印本页]

作者: ziqiuwendan    时间: 2007-10-23 17:15
标题: Execution Log是乱码 怎么解决呀 用的也是utf8了
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.0.0 for WINXP; Web build 4141          [MsgId: MMSG-27143]
Run-Time Settings file: "E:\scripts\bs2\\default.cfg"          [MsgId: MMSG-27141]
UTC (GMT) start date/time  : 2007-10-23 08:47:25          [MsgId: MMSG-26000]
LOCAL start date/time      : 2007-10-23 16:47:25          [MsgId: MMSG-26000]
Local daylight-Savings-Time: No          [MsgId: MMSG-26000]
Some of the Run-Time Settings:          [MsgId: MMSG-27142]
    Run Mode: HTTP          [MsgId: MMSG-26845]
    Download non-HTML resources: Yes          [MsgId: MMSG-26845]
    Verification checks: No          [MsgId: MMSG-26845]
    Simulate a new user each iteration: Yes          [MsgId: MMSG-26845]
    Non-critical item errors as warnings: Yes          [MsgId: MMSG-26845]
    WinInet replay instead of Sockets: No          [MsgId: MMSG-26845]
    HTTP version: 1.1          [MsgId: MMSG-26845]
    Keep-Alive HTTP connections: Yes          [MsgId: MMSG-26845]
    Max self Meta refresh updates: 2          [MsgId: MMSG-26844]
    No proxy is used (direct connection to the Internet)          [MsgId: MMSG-27171]
    DNS caching: Yes          [MsgId: MMSG-26845]
    Simulate browser cache: Yes          [MsgId: MMSG-26845]
        Cache URLs requiring content (e.g., HTMLs): Yes          [MsgId: MMSG-26845]
            Additional URLs requiring content: None          [MsgId: MMSG-26845]
        Check for newer versions every visit to the page: No          [MsgId: MMSG-26845]
    Page download timeout (sec): 120          [MsgId: MMSG-26844]
    Resource Page Timeout is a Warning: No          [MsgId: MMSG-26845]
    ContentCheck enabled: Yes          [MsgId: MMSG-26845]
    ContentCheck script-level file: "E:\scripts\bs2\LrwiAedScript.xml"          [MsgId: MMSG-26842]
    Enable Web Page Breakdown: No          [MsgId: MMSG-26845]
    Enable connection data points: Yes          [MsgId: MMSG-26845]
    Process socket after reschedule: Yes          [MsgId: MMSG-26845]
    Snapshot on error: No          [MsgId: MMSG-26845]
    Define each step as a transaction: No          [MsgId: MMSG-26845]
    Read beyond Content-Length: No          [MsgId: MMSG-26845]
    Parse HTML Content-Type: TEXT          [MsgId: MMSG-26845]
    Graph hits per second and HTTP status codes: Yes          [MsgId: MMSG-26845]
    Graph response bytes per second: Yes          [MsgId: MMSG-26845]
    Graph pages per second: No          [MsgId: MMSG-26845]
    Web recorder version ID: 5          [MsgId: MMSG-26844]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(6): web_set_max_html_param_len started          [MsgId: MMSG-26355]
Action.c(6): web_set_max_html_param_len was successful          [MsgId: MMSG-26392]
Action.c(11): web_reg_save_param started          [MsgId: MMSG-26355]
Action.c(11): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(19): web_url("bookstore") started          [MsgId: MMSG-26355]
Action.c(19): t=3792ms: Connecting to host 219.235.227.164:80          [MsgId: MMSG-26000]
Action.c(19): t=3820ms: Connected socket from 192.168.1.102:7413 to 219.235.227.164:80 in 25 ms          [MsgId: MMSG-26000]
Action.c(19): t=3823ms: 203-byte request headers for "http://zhihuiyixue.com/bookstore/" (RelFrameId=1)
Action.c(19):     GET /bookstore/ HTTP/1.1\r\n
Action.c(19):     User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; WBP/20070724)\r\n
Action.c(19):     Accept-Encoding: gzip, deflate\r\n
Action.c(19):     Accept: */*\r\n
Action.c(19):     Connection: Keep-Alive\r\n
Action.c(19):     Host: zhihuiyixue.com\r\n
Action.c(19):     \r\n
Action.c(19): t=3931ms: 241-byte response headers for "http://zhihuiyixue.com/bookstore/" (RelFrameId=1)
Action.c(19):     HTTP/1.1 200 OK\r\n
Action.c(19):     Set-Cookie: JSESSIONID=5074C424450B434A7F597C40BFA0EB3A; Path=/\r\n
Action.c(19):     Content-Type: text/html;charset=GB2312\r\n
Action.c(19):     Content-Language: en-US\r\n
Action.c(19):     Transfer-Encoding: chunked\r\n
Action.c(19):     Date: Tue, 23 Oct 2007 08:59:28 GMT\r\n
Action.c(19):     Server: Apache-Coyote/1.1\r\n
Action.c(19):     \r\n
Action.c(19): t=3986ms: 6-byte chunked response overhead for "http://zhihuiyixue.com/bookstore/" (RelFrameId=1)
Action.c(19):     2000\r\n
Action.c(19): t=4074ms: 4109-byte chunked response body for "http://zhihuiyixue.com/bookstore/" (RelFrameId=1)
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml
Action.c(19):     1/DTD/xhtml1-transitional.dtd">\r\n
Action.c(19):     <html xmlns="http://www.w3.org/1999/xhtml">\r\n
Action.c(19):     <input type="hidden" name="_id0" value="1" />\r\n
Action.c(19):     <head>\r\n
Action.c(19):     <title>     é      &gt;-         &gt;-       ×        
Action.c(19):             êwww.book4s.cn</title>\r\n
Action.c(19):     \r\n
Action.c(19):     \r\n
Action.c(19):     <link href="css/index.css" rel="stylesheet" type="text/css" />\r\n
Action.c(19):     \r\n
Action.c(19):     <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />\r\n
Action.c(19):     <meta name="Keywords" content="                é       é     
Action.c(19):      é      é         é   à    é" />\r\n
Action.c(19):     <meta name="description" content="              é    é        
Action.c(19):            à                ù      ×             
Action.c(19):        ê  " />\r\n
Action.c(19):     \r\n
Action.c(19):     <script src="Scripts/flash.js" type=text/javascript></script>\r\n
Action.c(19):     <style type="text/css">\r\n
Action.c(19):     <!--\r\n
Action.c(19):     _shadow {\tborder: 1px solid #000000;\r\n
Action.c(19):     }\r\n
Action.c(19):     -->\r\n
Action.c(19):     </style>\r\n
Action.c(19):     </head>\r\n
Action.c(19):     \r\n
Action.c(19):     <body><div id="top">\r\n
Action.c(19):       <div id="logo1"><a href="/"><img name="zhihuiyixuelogo" src="images/index/zhihuiyixuelog
Action.c(19):     o.gif" width="208" height="20" border="0" id="zhihuiyixuelogo" alt="" /></a></div>\r\n
Action.c(19):       <div id="big_nav"><a href="/"> × </a> | <a href="/news">     </a> | <a href="/bo
Action.c(19):     okstore"><span class="red">     é  </span></a> | <a href="/video/">       <
Action.c(19):     /a> | <a href="/exam">     à </a> | <a href="/download">       </a>| <a href
Action.c(19):     ="/web/">      </a> | <a href="/bbs">        </a> | <a href="/guestbook/"> 
Action.c(19):          </a> | <a href="/help">        </a></div>\r\n
Action.c(19):     </div>\r\n
Action.c(19):     <div id="header">\r\n
Action.c(19):       <div id="logo_shop"><a href="/bookstore"><img src="images/index/logo.gif" alt="     
Action.c(19):                é  " width="200" height="71" border="0" /></a></div>\r\n
Action.c(19):       <div id="serch"><table width="100%" border="0" cellpadding="0" cellspacing="0">\r\n
Action.c(19):       <tr>\r\n
Action.c(19):         <td height="24">\r\n
Action.c(19):     \t\r\n
Action.c(19):     \t<a  href="html/category.ctrl" class="nav">       </a>\r\n
Action.c(19):     \r\n
Action.c(19):     \t<a href="html/newbook.ctrl" class="nav">   é    </a>\r\n
Action.c(19):     \t\r\n
Action.c(19):     \t<a href="html/topsale.ctrl" class="nav">   ú    </a>\r\n
Action.c(19):     \t<a href="html/searchCategory.ctrl?categoryUrl=ALL" class="nav">       </a>\r\n
Action.c(19):     \t<a href="html/specialStore.ctrl" class="nav">        </a>\r\n
Action.c(19):     \t<a href="control/" class="nav">       </a>\r\n
Action.c(19):     \t<a href="/guestbook/" class="nav">       </a>\r\n
Action.c(19):     \t<a href="../help/" class="nav">       </a>\t\t</td>\r\n
Action.c(19):       </tr>\r\n
Action.c(19):       <tr>\r\n
Action.c(19):         <td class="sibian"><form id="form1" name="form1" method="get" action="html/searchPowwe
Action.c(19):     r.ctrl">\r\n
Action.c(19):           <table width="100%" border="0" cellspacing="0" cellpadding="0">\r\n
Action.c(19):             <tr>\r\n
Action.c(19):               <td width="30"><img src="images/index/search1.gif" width="24" height="25" /></td
Action.c(19):     >\r\n
Action.c(19):               <td width="50">      ÷</td>\r\n
Action.c(19):               <td><input name="key" type="text" id="key" size="50" /></td>\r\n
Action.c(19):               <td><input type="submit" name="Submit" value="   ù          ÷" />
Action.c(19):     </td>\r\n
Action.c(19):               <td><a href="html/advanced_search.ctrl">      ÷</a>| <a href="/help/">  
Action.c(19):      ÷    </a></td>\r\n
Action.c(19):             </tr>\r\n
Action.c(19):           </table>\r\n
Action.c(19):             </form>    </td>\r\n
Action.c(19):       </tr>\r\n
Action.c(19):     </table>\r\n
作者: bencheung    时间: 2007-10-23 18:53
标题: Recording Log出現亂碼
我也選擇UTF-8 但是也出現亂碼!我用的是繁體!
作者: rickyzhu    时间: 2007-10-23 22:44
这些信息对你很重要么
如果不是很重要的话,skip it
作者: 大漠飞鹰    时间: 2007-10-24 06:38
看了你发上来的代码,有可能是页面代码的问题。
解决办法如下:
让开发人员将html头中的<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />提到<title> </title>之前。因为IE在读到charset之前会用上次编码解码。
在你上面的代码中可以很明显的看到<title></title>的数据已经是乱码。

当然,还有一种可能是页面的保存的编码格式不正确。
你可以看看我的一个关于乱码解决办法的帖子。
作者: ziqiuwendan    时间: 2007-10-25 17:06
我找到方法了  其实我测试的网站 不是用utf-8编码的  就不用选上那个选项 就可以了 就正常了
作者: yzylion    时间: 2008-11-26 15:44
晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕
作者: IUHK    时间: 2008-11-26 21:43
感谢LZ,果然是这个UFT-8的设置问题,我也在录一个网站,里面中文的参数一直都是乱码,现在去掉就好了。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2