51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5287|回复: 4
打印 上一主题 下一主题

[原创] 怎样才能正确录制flex网站呀?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-7-8 10:40:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我按照这个地址上的方法http://www.automatedwebtest.info/performance-testing/loadrunner-flex-protocol-recording/,录制flex网站的脚本。录制代码如下:

Action()
{
web_url("create_photo_book.html",
  "URL=http://test/sdi/swf/create_photo_book.html",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=create_photo_book.swf", ENDITEM,
  LAST);
web_url("historyFrame.html",
  "URL=http://test/sdi/swf/history/historyFrame.html?",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://test/sdi/swf/create_photo_book.html",
  "Snapshot=t2.inf",
  "Mode=HTML",
  LAST);
lr_rendezvous("dd");
lr_start_transaction("dd");
flex_web_request("upload.php",
  "URL=http://test/photo/upload.php",
  "Method=POST",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t3.inf",
  "Mode=HTML",
  "EncType=multipart/form-data; boundary="
  "----------Ij5KM7ei4ei4ei4GI3gL6GI3ei4Ij5",
  body_variable_1,
  "EXTRARES",
  "Url=images/96332821.jpg",
  "Referer=http://test/sdi/swf/create_photo_book.swf",
  "ENDITEM",
  LAST);
lr_end_transaction("dd",LR_AUTO);
return 0;
}



执行结果如下:
Action.c(28)对应的是上面的红色字体部分 。



Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Found resource "http://test/sdi/swf/history/history.css" in HTML "http://test/sdi/swf/create_photo_book.html"   [MsgId: MMSG-26659]
Action.c(4): Found resource "http://test/sdi/swf/AC_OETags.js" in HTML "http://test/sdi/swf/create_photo_book.html"   [MsgId: MMSG-26659]
Action.c(4): Found resource "http://test/sdi/swf/history/history.js" in HTML "http://test/sdi/swf/create_photo_book.html"   [MsgId: MMSG-26659]
Action.c(4): Downloading resource "http://test/sdi/swf/create_photo_book.swf" (specified by argument number 9)   [MsgId: MMSG-26577]
Action.c(4): web_url("create_photo_book.html") was successful, 616269 body bytes, 1549 header bytes   [MsgId: MMSG-26386]
Action.c(15): web_url("historyFrame.html") was successful, 807 body bytes, 297 header bytes   [MsgId: MMSG-26386]
Action.c(24): Rendezvous dd
Action.c(26): Notify: Transaction "dd" started.

Action.c(28): Warning -26491: '\' not followed by x, X or '\'   [MsgId: MWAR-26491]

Action.c(28): Downloading resource "http://test/photo/images/96332821.jpg" (specified by argument number 12)   [MsgId: MMSG-26577]
Action.c(28): flex_web_request("upload.php") highest severity level was "warning", 105555 body bytes, 527 header bytes   [MsgId: MMSG-26388]

Action.c(45): Notify: Transaction "dd" ended with "ass" status (Duration: 0.2698).
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.


请问上面执行结果中红色的部分,如何处理呀?


还有就是,查看上面脚本的Tasks==》Recording==》Recording Summary时,它的Recording Summary中的AMF协议没有被使用,为什么呀?

[ 本帖最后由 禾末 于 2008-7-8 11:26 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情

    2016-12-30 10:59
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]测试排长

    2#
    发表于 2008-7-8 11:09:56 | 只看该作者
    Message Code 26491
    \' not followed by x, X or '\

    Invalid escape sequence `\' is not followed by any of x, X, \, r, n, t. The combination of `\' followed by one of the digits mentioned above represents control characters or a prefix of binary data.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2008-7-9 10:37:38 | 只看该作者
    请问如何解决这个转码的问题呢???
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2009-2-10 18:01:36 | 只看该作者
    我也想知道,请问解决了吗
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
    发表于 2009-11-25 13:08:58 | 只看该作者
    应该是由上传附件引起的(应用服务重启可能会造成此问题),重新录制脚本可以解决该问题(已试过)
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-6-11 09:00 , Processed in 0.180784 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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