51Testing软件测试论坛

标题: LR11录制脚本时报Unable to connect to remote server: rc = -1 , le = 0) [打印本页]

作者: shiwshan    时间: 2015-7-31 09:08
标题: LR11录制脚本时报Unable to connect to remote server: rc = -1 , le = 0)
本帖最后由 shiwshan 于 2015-7-31 09:13 编辑

服务器部署在linux机器上,是用tomcat部署的
录制脚本时,请求失败,点击登陆因为请求失败无法跳转到下一个页面
错误信息:
[Network Analyzer (270c:20f0)] Request Connection: Remote Server @ 125.90.204.122:80   (Service=)  (Sid= 21)  PROXIED!
[Network Analyzer (270c:20f0)] Address lookup for winhong-PC = 10.10.112.177
[Network Analyzer (270c:20f0)] Request Connection: Remote Server @ 113.107.57.43:80   (Service=)  (Sid= 22)  PROXIED!
[Web Request      (270c:12d8)] "GET /cclv/v2/patterns.json"   
[Network Analyzer (270c:12d8)]   (Sid: 21) Client -> Server : 511 bytes (Service=HTTP)
[Network Analyzer (270c:20f0)] Address lookup for winhong-PC = 10.10.112.177
[Network Analyzer (270c:12d8)]   (Sid: 21) Server -> Client : 312 bytes  (Service=HTTP)
[Network Analyzer (270c:20f0)] Request Connection: Remote Server @ 120.31.128.34:80   (Service=)  (Sid= 23)  PROXIED!
[Network Analyzer (270c:20f0)] Address lookup for winhong-PC = 10.10.112.177
[Network Analyzer (270c:20f0)] Request Connection: Remote Server @ 120.31.128.34:80   (Service=)  (Sid= 24)  PROXIED!
[Network Analyzer (270c:20f0)] Address lookup for winhong-PC = 10.10.112.177
[Web Request      (270c:12d8)] "POST /wap/personal/member/login.do?1438164147256"   
[Network Analyzer (270c:12d8)]   (Sid: 24) Client -> Server : 665 bytes (Service=HTTP)
[Network Analyzer (270c:20f0)] Request Connection: Remote Server @ 125.90.204.122:80   (Service=)  (Sid= 25)  PROXIED!
[Network Analyzer (270c:20f0)] Address lookup for winhong-PC = 10.10.112.177
[Network Analyzer (270c:12d8)]   (Sid: 24) Server -> Client : 578 bytes  (Service=HTTP)
[Net An. Warning  (270c:20f0)] Request Connection: Remote Server @ 74.125.23.91:443 (Service=) Failed attempt #1. Unable to connect to remote server: rc = -1 , le = 0)
[Network Analyzer (270c:12d8)]   (Sid: 22) Connection Terminated (by Server)
[Network Analyzer (270c:12d8)]   (Sid: 21) Connection Terminated (by Server)
[Network Analyzer (270c:12d8)]   (Sid: 25) Connection Terminated (by Server)
[Net An. Warning  (270c:20f0)] Request Connection: Remote Server @ 74.125.23.91:443 (Service=) Failed attempt #2. Unable to connect to remote server: rc = -1 , le = 0)
[Network Analyzer (270c:12d8)]   (Sid: 23) Connection Terminated (by Server)
[Net An. Warning  (270c:20f0)] Request Connection: Remote Server @ 74.125.23.91:443 (Service=) Failed attempt #3. Unable to connect to remote server: rc = -1 , le = 0)
[Net An. Error    (270c:20f0)] Request Connection: Remote Server @ 74.125.23.91:443   (Service=)  NOT PROXIED! (REASON: Unable to connect to remote server: rc = -1 , le = 0)
[Network Analyzer (270c:20f0)] Address lookup for winhong-PC = 10.10.112.177
[Network Analyzer (270c:12d8)]   (Sid: 24) Connection Terminated (by Server)
[Net An. Warning  (270c:20f0)] Request Connection: Remote Server @ 74.125.23.91:443 (Service=) Failed attempt #1. Unable to connect to remote server: rc = -1 , le = 0)


网上说设置端口就能解决了,但是我试过了也还是不行

作者: jingzizx    时间: 2015-7-31 13:33
查看recording options 选项中port mapping选择socket level and wininet level data试试
作者: shiwshan    时间: 2015-7-31 16:27
jingzizx 发表于 2015-7-31 13:33
查看recording options 选项中port mapping选择socket level and wininet level data试试

这种试过了,还是不行哦。
我把服务器的防火墙关了也还是不行。不知道是不是服务器还要做什么设置才行?
作者: ttaill    时间: 2015-8-7 11:16
我也是这样,录制就出错,但的确是能访问到服务器的




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