[LDTP-Dev] ldtpv3.0.0-xml.parsers.expat.ExpatError
Nagappan Alagappan
nagappan at gmail.com
Tue Sep 25 07:21:32 PDT 2012
Hi Jay,
I guess its because of a running app, with window title, which can mess up
the XML.
I would debug this way:
* open gnome-terminal or what so ever in GUI mode
* In first tab, export LDTP_DEBUG=2 and then ldtp
* In second tab, open python prompt and type getapplist()
Now see what's the exception in first tab and try the fix or send the
exception, let me try a fix.
Thanks
Nagappan
On Tue, Sep 25, 2012 at 2:24 AM, Jay Krish <raajjya at gmail.com> wrote:
>
> i installed ldtpv3.0.0. and got this trace with getapplist() . But
> getwindowlist() works fine.
> Am i missing any dependencies?
> AFAIK i had all the dependenciy packages - using ubuntu-11.04 GNome 2.32.1
>
> [in 12.04 everything works but i have to move on with 11.04 tests also :(
> ]
>
>
> _________________________________________________________________________________________________
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "ldtp/client.py", line 69, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
> verbose=self.__verbose
> File "ldtp/client.py", line 146, in request
> parser.feed(payload)
> File "/usr/lib/python2.7/xmlrpclib.py", line 557, in feed
> self._parser.Parse(data, 0)
> xml.parsers.expat.ExpatError: not well-formed (invalid token): line 29,
> column 15
>
> __________________________________________________________________________________________________
>
>
>
>
> Also this is the trace from my testcases
> When all test cases passes it works . if any tests cases fails then it
> outputs
>
> ____________________________________________________________________________________________________
> [exec] File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in
> __request
> [exec] verbose=self.__verbose
> [exec] File "/usr/local/lib/python2.7/dist-packages/ldtp/client.py",
> line 186, in request
> [exec] raise e
> [exec] Fault: <Fault 8002: "'gi.repository.Gdk' object has no
> attribute
> 'get_default_root_window'">
>
> ____________________________________________________________________________________________________
>
>
>
>
> --
> View this message in context:
> http://old.nabble.com/ldtpv3.0.0-xml.parsers.expat.ExpatError-tp34476438p34476438.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/20120925/3d0deabb/attachment.html>
More information about the LDTP-dev
mailing list