<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Noah,<br>
<br>
We are also looking at automated GUI testing for PyQt.&nbsp; There are two
open source tools that I've found:<br>
&nbsp;&nbsp;&nbsp; * LDTP - <a class="moz-txt-link-freetext" href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br>
&nbsp;&nbsp;&nbsp; * Dogtail - <a class="moz-txt-link-freetext" href="https://fedorahosted.org/dogtail/">https://fedorahosted.org/dogtail/</a><br>
<br>
&nbsp;Both tools rely on hooks into the Accessibility library.&nbsp; That doesn't
currently work with Qt.&nbsp; There is on going work to make them work but <br>
&nbsp;it's probably a couple months out.&nbsp; I've emailed Nagappen, of LDTP
fame, and he said:<br>
<blockquote type="cite">If the GUI application is written using gnome
(gtk widget) / Mozilla
(XUL) / Java (Swing interface) / OpenOffice, then you can access with
LDTP. Currently there is a work going on to use accessibility layer in
QT applications using dbus. Once this part is ready, LDTP can be used
to test applications written using QT too.<br>
</blockquote>
I am pretty sure Nagappen is on the list so maybe he will chime in.<br>
<br>
Mark Doffman is doing the accessibility work.&nbsp; Here is some
corrispondence I've gotten from him:<br>
<blockquote type="cite">
  <pre wrap="">The work is ongoing, but at an early stage. We are looking to have a
demo of Qt accessibility over another pyatspi based testing framework
called Dogtail by the end of this month. This isn't necessarily a
recommendation for Dogtail. LDTP has also been ported to pyatspi, so
should also work.

The source can be found at:

git://doffman.com/qspiaccessiblebridge
  </pre>
</blockquote>
Mark's work looks pretty good but he just needs time or help to
complete it.<br>
<br>
So in summary, we've played with LDTP and I think it's pretty cool but
it can't work with PyQt, right now.&nbsp; We are looking at Squish
(<a class="moz-txt-link-freetext" href="http://www.froglogic.com/">http://www.froglogic.com/</a>) to do some automated testing in the time
being.<br>
<br>
Paul<br>
<br>
<br>
<br>
Noah Gift wrote:
<blockquote
 cite="mid:e91cc0270906240356x3cb163eaya3983b87d9b31c6@mail.gmail.com"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Wed, Jun 24, 2009 at 10:52 PM, Michael
Foord <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im">Noah Gift wrote:<br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Anyone on the list have good recommendations for simplistic functional
testing PyQt applications with nose? By simplistic, I mean, launch the
GUI, then quit, if there weren't any exceptions, good enough for first
round of tests.<br>
    </blockquote>
    <br>
    </div>
You could check out my articles on Function Testing of GUI
applications. The examples are with Windows Forms and unittest but all
the principles should apply:<br>
    <br>
    <a moz-do-not-send="true"
 href="http://www.voidspace.org.uk/python/articles/testing/index.shtml"
 target="_blank">http://www.voidspace.org.uk/python/articles/testing/index.shtml</a></blockquote>
  <div><br>
Hey, that looks useful thanks.&nbsp; Btw, do you happen to have a theme on
your site for people that don't want to feel like they just dropped a
few tabs of acid :) <br>
  </div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
    <br>
(Functional test number 1 for Resolver One is that when the application
starts a Windows with the right title appears. It's about two lines of
code. :-)<br>
    <br>
The Python Testing Tools Taxonomy lists pyGUIUnit as a library for
testing Qt. Seems pretty old though:<br>
    <br>
    <a moz-do-not-send="true"
 href="http://sourceforge.net/projects/pyguiunit/" target="_blank">http://sourceforge.net/projects/pyguiunit/</a><br>
    <br>
Michael<br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <br>
-- <br>
Cheers,<br>
      <br>
Noah<br>
------------------------------------------------------------------------<br>
      <br>
_______________________________________________<br>
testing-in-python mailing list<br>
      <a moz-do-not-send="true"
 href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a><br>
      <a moz-do-not-send="true"
 href="http://lists.idyll.org/listinfo/testing-in-python"
 target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
&nbsp;<br>
    </blockquote>
    <br>
    <br>
-- <br>
    <a moz-do-not-send="true" href="http://www.ironpythoninaction.com/"
 target="_blank">http://www.ironpythoninaction.com/</a><br>
    <a moz-do-not-send="true" href="http://www.voidspace.org.uk/blog"
 target="_blank">http://www.voidspace.org.uk/blog</a><br>
    <br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Cheers,<br>
  <br>
Noah<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.09040206.02060208@disney.com" border="0"></div>
</body>
</html>