51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2039|回复: 0
打印 上一主题 下一主题

python + selenium 在ubuntu 上遇到的socket连接问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2015-9-30 10:40:32 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
我的case是用python的unittest2框架写的,执行用的是nosetests,每个case单个执行的时候都没有问题,做成suite执行时就会出现下面的socket连接错误。ubuntu上的socket连接数和其他相关的高并发高性能配置都已经做好了,实在是查不出来问题在哪。不知道哪位兄弟遇到过同样的问题吗?

File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 448, in _execute
    return self._parent.execute(command, params)
  File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 194, in execute
    response = self.command_executor.execute(driver_command, params)
  File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 397, in execute
    return self._request(command_info[0], url, body=data)
  File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 427, in _request
    self._conn.request(method, parsed_url.path, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 979, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 797, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 778, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error: [Errno 111] Connection refused


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-23 23:18 , Processed in 0.071521 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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