[LDTP-Dev] Mago command is getting connection refused

Nagappan Alagappan nagappan at gmail.com
Tue Sep 11 14:56:18 PDT 2012


Hi Suganthini,

Try installing accerciser package, which installs all required packages for
LDTP. Then try running the test. Before trying something with Mago, can you
please verify basic LDTP works ?

Go to python prompt, then type the following:

from ldtp import *
getapplist()
getwindowlist()

If the output != [], than means things are working, if the output is [],
then something going wrong. Hope this helps to start with.

Thanks
Nagappan

On Tue, Sep 11, 2012 at 6:02 AM, ssatheeskumar
<sakthysuganthini at gmail.com>wrote:

>
> Hi Nagappan,
>
> I got 'Mago' source from bazaar repository on Ubuntu11:04 machine. Then,
> tried to execute one of example test script, execution is getting failed by
> throwing the below output.
>
> ct-vostest102:~/magonew/mago/tests$ ./mago test_helloworld.py
> Gtk-Message: Failed to load module "canberra-gtk-module"
> Gtk-Message: Failed to load module "gail"
> Gtk-Message: Failed to load module "atk-bridge"
> Gtk-Message: Failed to load module "gail"
> Gtk-Message: Failed to load module "atk-bridge"
> Gtk-Message: Failed to load module "gail-gnome"
> /usr/lib/python2.7/dist-packages/gi/module.py:119: Warning: cannot register
> existing type `EventType'
>   wrapper = enum_register_new_gtype_and_add(info)
>
> ** (-c:5747): CRITICAL **: pyg_enum_add: assertion `typename != NULL'
> failed
> /usr/lib/pymodules/python2.7/gtk-2.0/gtk/__init__.py:40: Warning: specified
> class size for type `PyGtkGenericCellRenderer' is smaller than the parent
> type's `GtkCellRenderer' class size
>   from gtk import _gtk
> /usr/lib/pymodules/python2.7/gtk-2.0/gtk/__init__.py:40: Warning:
> g_type_get_qdata: assertion `node != NULL' failed
>   from gtk import _gtk
> /usr/lib/pymodules/python2.7/gtk-2.0/gtk/__init__.py:40: Warning:
> g_ascii_strncasecmp: assertion `s2 != NULL' failed
>   from gtk import _gtk
> Traceback (most recent call last):
>   File "./mago", line 28, in <module>
>     from mago import main
>   File "/home/virtusa/magonew/mago/mago/__init__.py", line 33, in <module>
>     from mago.core import main, TestResult, TextTestRunner, magoConfig
>   File "/home/virtusa/magonew/mago/mago/core.py", line 27, in <module>
>     from mago.application import TestApplication
>   File "/home/virtusa/magonew/mago/mago/application.py", line 24, in
> <module>
>     import ldtp, ooldtp
>   File "/usr/local/lib/python2.7/dist-packages/ldtp/__init__.py", line 545,
> in <module>
>     _populateNamespace(globals())
>   File "/usr/local/lib/python2.7/dist-packages/ldtp/__init__.py", line 225,
> in _populateNamespace
>     for method in client._client.system.listMethods():
>   File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
>     verbose=self.__verbose
>   File "/usr/local/lib/python2.7/dist-packages/ldtp/client.py", line 136,
> in
> request
>     self.send_content(h, request_body)
>   File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content
>     connection.endheaders(request_body)
>   File "/usr/lib/python2.7/httplib.py", line 951, in endheaders
>     self._send_output(message_body)
>   File "/usr/lib/python2.7/httplib.py", line 811, in _send_output
>     self.send(msg)
>   File "/usr/lib/python2.7/httplib.py", line 773, in send
>     self.connect()
>   File "/usr/lib/python2.7/httplib.py", line 754, 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.
>
> Could you please let me the reason for getting connection refused?
>
> Thanks & Best Regards,
> Suganthini.
>
> --
> View this message in context:
> http://old.nabble.com/Mago-command-is-getting-connection-refused-tp34418166p34418166.html
> Sent from the Free Desktop - LDTP mailing list archive at Nabble.com.
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>



-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20120911/b5f476b7/attachment.html>


More information about the LDTP-dev mailing list