51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 4222|回复: 3
打印 上一主题 下一主题

[原创] 求救!!回放flex项目的脚本出错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-7-15 15:42:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用的是LR9.1,项目是flex + php。
脚本录制时,一切正常。回放脚本,总是报错:
Error: Decoding of AMF message failed. Error is : ReadValue Failed due Insufficient data to read at location 6。
在run-time settings里的log设置后,回放,显示是 flex 和 php结合部分的那个页面,AMF需要php通过改页面传一个参数,但是这个参数,LR好像没录制到。

脚本如下:

  1. flex_ping("1",
  2.   "URL=http://application/flashservices/gateway.php",
  3.   "Snapshot=t4.inf",
  4.   "DSId=nil",
  5.   LAST);
  6. flex_remoting_call("amfphp::saveToBook",
  7.   "URL=http://application/flashservices/gateway.php",
  8.   "Snapshot=t5.inf",
  9.   INVOCATION,
  10.   "Target=/2",
  11.   "Operation=saveToBook",
  12.   "Destination=amfphp",
  13.   "DSEndpoint=http://application/flashservices/gateway.php",
  14.   "Source=com.sdi.services.BookPhotos",
  15.   "DSId=nil",
  16.   "Argument=<arguments><array><sequential><integer>756</integer></"
  17.   "sequential></array><integer>12345678</integer></arguments>",
  18.   LAST);
复制代码



部分执行结果如下:

Action.c(61):    t=592847ms: 146-byte response headers for "http://application/flashservices/gateway.php" (RelFrameId=1, Internal ID=9)
Action.c(61):     HTTP/1.1 500 Internal Server Error\r\n
Action.c(61):     Content-Type: text/html\r\n
Action.c(61):     Content-Length: 369\r\n
Action.c(61):     Date: Mon, 14 Jul 2008 10:00:16 GMT\r\n
Action.c(61):     Server: lighttpd/1.4.19\r\n
Action.c(61):     \r\n
Action.c(61): t=592861ms: 369-byte response body for "http://application/flashservices/gateway.php" (RelFrameId=1, Internal ID=9)
Action.c(61):     <?xml version="1.0" encoding="iso-8859-1"?>\n
Action.c(61):     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n
Action.c(61):              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
Action.c(61):     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n
Action.c(61):      <head>\n
Action.c(61):       <title>500 - Internal Server Error</title>\n
Action.c(61):      </head>\n
Action.c(61):      <body>\n
Action.c(61):       <h1>500 - Internal Server Error</h1>\n
Action.c(61):      </body>\n
Action.c(61):     </html>\n
Action.c(61): t=592915ms: Closing connection to novitech.oicp.net after receiving status code 500   [MsgId: MMSG-26000]
Action.c(61): t=592916ms: Closed connection to novitech.oicp.net:80 after completing 3 requests   [MsgId: MMSG-26000]
Action.c(61): t=592917ms: Request done "http://application/flashservices/gateway.php"   [MsgId: MMSG-26000]
Action.c(61): Warning: HTTP status code 500 was returned by the server
Action.c(61): Error: Decoding of AMF message failed. Error is : ReadValue Failed due Insufficient data to read at location 6
Action.c(61): There was an error during the flex_remoting_call ("amfphp::saveToBook")
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2010-8-11 20:48:18 | 只看该作者
  没人回答?
我也遇到同样的问题了…… 求高手出招……
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2010-8-12 10:27:10 | 只看该作者
只能猜测你发送的flex请求不全服务器返回500错误
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2012-1-4 13:54:34 | 只看该作者
测试flex项目需LR9.5.2以上版本,我用的是LR11.
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-6-5 06:30 , Processed in 0.075512 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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