Hi Paul,<br><br><div class="gmail_quote">On Wed, Jun 24, 2009 at 9:54 AM, Paul Hildebrandt <span dir="ltr">&lt;<a href="mailto:Paul.Hildebrandt@disneyanimation.com">Paul.Hildebrandt@disneyanimation.com</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 bgcolor="#ffffff" text="#000000">
Noah,<br>
<br>
We are also looking at automated GUI testing for PyQt.  There are two
open source tools that I&#39;ve found:<br>
    * LDTP - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>
    * Dogtail - <a href="https://fedorahosted.org/dogtail/" target="_blank">https://fedorahosted.org/dogtail/</a></div></blockquote><div><br>These automation tools as of now only for Linux platform. If you are looking at cross platform, then you may need to try with different solution. But, I&#39;m not aware of any in FOSS world to work in cross platform for GUI testing. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff" text="#000000"><br>
<br>
 Both tools rely on hooks into the Accessibility library.  That doesn&#39;t
currently work with Qt.  There is on going work to make them work but <br>
 it&#39;s probably a couple months out.  I&#39;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.  Here is some
corrispondence I&#39;ve gotten from him:<br>
<blockquote type="cite">
  <pre>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&#39;t necessarily a
recommendation for Dogtail. LDTP has also been ported to pyatspi, so
should also work.

The source can be found at:

git://<a href="http://doffman.com/qspiaccessiblebridge" target="_blank">doffman.com/qspiaccessiblebridge</a>
  </pre>
</blockquote>
Mark&#39;s work looks pretty good but he just needs time or help to
complete it.<br>
<br>
So in summary, we&#39;ve played with LDTP and I think it&#39;s pretty cool but
it can&#39;t work with PyQt, right now.  We are looking at Squish
(<a href="http://www.froglogic.com/" target="_blank">http://www.froglogic.com/</a>) to do some automated testing in the time
being.</div></blockquote><div><br>Nice :)<br><br>BTW, Paul, my name is misspelled ;)<br><br>Thanks<br>Nagappan <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><br>
<br>
Paul<br>
<br>
<br>
<br>
Noah Gift wrote:
<blockquote type="cite"><div><div></div><div class="h5"><br>
  <br>
  <div class="gmail_quote">On Wed, Jun 24, 2009 at 10:52 PM, Michael
Foord <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk" target="_blank">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>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&#39;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 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.  Btw, do you happen to have a theme on
your site for people that don&#39;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&#39;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 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 href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a><br>
      <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
 <br>
    </blockquote>
    <br>
    <br>
-- <br>
    <a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a><br>
    <a 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>
  </div></div><pre><hr size="4" width="90%"><div class="im">
_______________________________________________
testing-in-python mailing list
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a>
  </div></pre>
</blockquote>
<br>
<br>
<div>-- <br>
<img src="cid:part1.09040206.02060208@disney.com" border="0"></div>
</div>

<br>_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>