我尝试使用Telenium自动测试Kivy应用。根据README.md,我使用Telenium模块运行我的应用程序:
python -m telenium.execute main.py
接下来,我尝试使用客户端连接到此应用程序:
>>> id = cli.pick()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 168, in __call__
return self.http_client_instance.call(self.method, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 259, in call
debug = self.debug
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 132, in http_request
response = urllib2.urlopen(request, timeout = timeout)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>
为了进一步诊断,我做了以下事情:
>>> cli.url
'http://localhost:9901/jsonrpc'
任何帮助解决此问题都将不胜感激。