TA的每日心情 | 开心 2014-12-26 13:34 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
一个Java开发的CS程序,登录时需要读取一BS程序的用户信息并验证。
程序界面附图所示,我选择了Web+Sockets协议,录制日志:
- [Network Analyzer ( d98: d94)] ------------------------------------------------------------------------------------------
- [Network Analyzer ( d98: d94)] Load Network Traffic Analyzers:
- [Network Analyzer ( d98: d94)] Analyzer Module: WPLUS (value=)
- [Network Analyzer ( d98: d94)] Analyzer Module: WebBase (value=GetHttpProtocolAnalyzer:api_http_filter.dll)
- [Network Analyzer ( d98: d94)] + Network Analyzer: api_http_filter.dll @ GetHttpProtocolAnalyzer Loaded!
- [Network Analyzer ( d98: d94)] + Interception Auditors: WinInetWplusInterceptionAudit:api_http_filter.dll
- [Network Analyzer ( d98: d94)] Analyzer Module: QTWeb (value=)
- [Network Analyzer ( d98: d94)] Analyzer Module: WinSock (value=GetRawProtocolAnalyzer:api_sock_proxy.dll)
- [Network Analyzer ( d98: d94)] + Network Analyzer: api_sock_proxy.dll @ GetRawProtocolAnalyzer Loaded!
- [Network Analyzer ( d98: d94)] Analyzer Module: local_server (value=)
- [Network Analyzer ( d98: d94)] ------------------------------------------------------------------------------------------
- [Network Analyzer ( d98: e84)] Address lookup for higkoo = 192.168.1.15
- [Network Analyzer ( d98: d94)] Address lookup for higkoo = 192.168.1.15
- [Net An. Warning ( d98: d94)] Request Connection: Remote Server @ 127.0.0.1:56770 (Service=) Failed attempt #1. Unable to connect to remote server: rc = -1 , le = 0)
- [Net An. Warning ( d98: d94)] Request Connection: Remote Server @ 127.0.0.1:56770 (Service=) Failed attempt #2. Unable to connect to remote server: rc = -1 , le = 0)
- [Net An. Warning ( d98: d94)] Request Connection: Remote Server @ 127.0.0.1:56770 (Service=) Failed attempt #3. Unable to connect to remote server: rc = -1 , le = 0)
- [Net An. Error ( d98: d94)] Request Connection: Remote Server @ 127.0.0.1:56770 (Service=) NOT PROXIED! (REASON: Unable to connect to remote server: rc = -1 , le = 0)
- [Network Analyzer ( d98: e3c)] Establish Listener @ 0.0.0.0:56770
- [Network Analyzer ( d98: f9c)] Address lookup for testserver = 192.168.1.10
- [Network Analyzer ( d98: f9c)] Address lookup for higkoo = 192.168.1.15
- [Network Analyzer ( d98: f9c)] Request Connection: Remote Server @ 10.1.21.67:9012 (Service=) (Sid= 2) PROXIED!
- [Web Request ( d98: e84)] "POST /Applist/CSServiceServlet?method=userinfo"
- [Network Analyzer ( d98: e84)] (Sid: 2) Client -> Server : 870 bytes (Service=HTTP)
- [Network Analyzer ( d98: e84)] (Sid: 2) Server -> Client : 1814 bytes (Service=HTTP)
- [Network Analyzer ( d98: e84)] (Sid: 2) Connection Terminated (by Client)
- [Network Analyzer ( d98: fac)] Address lookup for higkoo = 192.168.1.15
- [Network Analyzer ( d98: e3c)] Accept Connection : Service @ 0.0.0.0:56770 , Remote Client @ 127.0.0.1:1135
- [Network Analyzer ( d98: fac)] Request Connection: Remote Server @ 127.0.0.1:56770 (Service=) (Sid= 4) PROXIED!
- [Network Analyzer ( d98: e84)] (Sid: 4) Client -> Server : 13 bytes
- [Network Analyzer ( d98: e84)] (Sid: 3) Server -> Client : 13 bytes
- [Network Analyzer ( d98: e84)] (Sid: 4) Connection Terminated (by Client)
- [Network Analyzer ( d98: e84)] (Sid: 3) Connection Terminated (by Server)
复制代码
回放也出错:
- 虚拟用户脚本已启动
- 正在开始操作 vuser_init。
- Web Turbo 重播 LoadRunner 8.1.0 for WIN2003; Web 内部版本 4788 [MsgId: MMSG-27143]
- 运行时设置文件: "C:\Documents and Settings\higkoo\Local Settings\Temp\noname1\\default.cfg" [MsgId: MMSG-27141]
- 正在结束操作 vuser_init。
- 正在运行 Vuser...
- 正在开始迭代 1。
- 正在开始操作 Action。
- Action.c(4): lrs_create_socket(socket0, TCP, ...)
- Action.c(10): 警告 -26491: “\”之后未跟随 x、X 或“\” [MsgId: MWAR-26491]
- Action.c(10): web_custom_request("CSServiceServlet") 最高严重级别为“warning”,1488 个正文字节,314 个标头字节,12 个成块开销字节 [MsgId: MMSG-26387]
- Action.c(28): lrs_accept_connection(socket0, socket1)
- Action.c(28): 错误: 尝试 accept connection 的超时时间已到。错误代码: 9017。
- 从操作调用了中止。
- 正在结束 Vuser...
- 正在开始操作 vuser_end。
- 正在结束操作 vuser_end。
- Vuser 已终止。
复制代码
然后我只用Sockets录制,录制日志中没有错误,回放一样出错:
- 虚拟用户脚本已启动
- 正在开始操作 vuser_init。
- vuser_init.c(12): lrs_startup(257)
- 正在结束操作 vuser_init。
- 正在运行 Vuser...
- 正在开始迭代 1。
- 正在开始操作 Action。
- Action.c(14): lrs_create_socket(socket0, TCP, ...)
- Action.c(14): 错误: callConnect - 连接被拒绝。错误代码: 10061。
- Action.c(14): 错误: 尝试 connect 的超时时间已到。错误代码: 9017。
- 从操作调用了中止。
- 正在结束 Vuser...
- 正在开始操作 vuser_end。
- vuser_end.c(12): lrs_cleanup()
- 正在结束操作 vuser_end。
- Vuser 已终止。
复制代码
请高手赐教 :) |
|