51Testing软件测试论坛

标题: 求救!!回放flex项目的脚本出错 [打印本页]

作者: 禾末    时间: 2008-7-15 15:42
标题: 求救!!回放flex项目的脚本出错
我用的是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")
作者: bluefeeler    时间: 2010-8-11 20:48
  没人回答?
我也遇到同样的问题了…… 求高手出招……
作者: 云层    时间: 2010-8-12 10:27
只能猜测你发送的flex请求不全服务器返回500错误
作者: JOANNE    时间: 2012-1-4 13:54
测试flex项目需LR9.5.2以上版本,我用的是LR11.




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