51Testing软件测试论坛
标题:
sock脚本中回放数据的接收字节不对有没有什么影响
[打印本页]
作者:
andrew_zx
时间:
2007-10-17 20:40
标题:
sock脚本中回放数据的接收字节不对有没有什么影响
我每次修改字节数,第二次就变,但是里面数据没有变 就是字节数变了,导致出现警告,有没有办法获得单次回放接收的字节数(毕竟LR也就是检查字节数数目是否一样而不去检查是否相同),计算一下,再作为参数写回,data.ws
有人那么做过吗
作者:
Zee
时间:
2007-10-18 00:01
数据没有变,但是字节变了?
把脚本和LOG拿出来看看。
作者:
andrew_zx
时间:
2007-10-18 14:15
以下是log
----------------------------
Action.c(193): Warning: The string '/x' with parameter delimiters is not a parameter.
Action.c(193): Warning: The string '/message' with parameter delimiters is not a parameter.
================================EXPECTED BUFFER================================
"<message xmlns='jabber:client' from='123456.00.1@im.net/IM' type='si"
"p_chat' to='~
123456.03.v20tvfzg20071015145022101@v1.im.net
/syni' id=''>"
"<thread>{3E7F0E2D-BBFA-4F4C-8C2A-B98A84ED6101}</thread><body>Auto Answer M"
"essage</body><x xmlns='jabber:x:event'><composing/></x></message>"
===============================================================================
Action.c(193): getAsciiReceivedBuffer: Thu Oct 18 10:51:58.953: Translate data for printing
Action.c(193): getAsciiReceivedBuffer: Thu Oct 18 10:51:58.984: Binary to ascii
================================RECEIVED BUFFER================================
"<message xmlns='jabber:client' from='123456.00.1@im.net/IM' type='si"
"p_chat' to='~
123456.03.v20tvfzg20071015145022101@v1.im.net
/syni' id=''>"
"<thread>{3E7F0E2D-BBFA-4F4C-8C2A-B98A84ED6101}</thread><body>Auto Answer M"
"essage</body><x xmlns='jabber:x:event'><composing/></x></message>"
===============================================================================
Action.c(193): callRecv:287 bytes were received
----------
以下是脚本
lrs_receive("socket1", "buf70", LrsLastArg);
数据包
recv buf70 297
"<message xmlns='jabber:client' from='123456.00.1@im.net/IM' type='si"
"p_chat' to='~123456.03.v20tvfzg20071015145022<random>@v1.im.net/syni' i"
"d=''><thread>{3E7F0E2D-BBFA-4F4C-8C2A-B98A84ED6<random>}</thread><body>Aut"
"o Answer Message</body><x xmlns='jabber:x:event'><composing/></x></message"
">"
作者:
andrew_zx
时间:
2007-10-18 14:16
预期的数据和实际返回的数据是一样的
就是字节数和预期的不一致
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2