[TIP] Python GUI testing

John Arbash Meinel john at arbash-meinel.com
Sat Apr 2 13:44:37 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/1/2011 10:35 PM, Geoff Bache wrote:
> Hi all,
> 
> I was about to post an announcement about a new release of my Python
> GUI test tool PyUseCase but then thought that previous ones haven't
> generated any response so I would ask a question instead. You can
> always read the announcement on python-announce...
> 
> Does anyone here write GUIs (rich clients) in Python at all? More to
> the point, does anyone attempt to do any testing through the GUI or
> are you happy just testing the underlying layers?

I've done testing of PyQT apps using the signal interfaces. So generate
Click signal of this button and make sure that this box.getValue has the
right content.

Both PyQT and PyGTK seem to support triggering signals (events,
whatever) without running the application loop.

It is true that I'm not generating a mouse click input to a separate
process. But it is getting 95% of the way there, and *doesn't* require
popping up a visible window most of the time.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2XirQACgkQJdeBCYSNAAOPPwCfZY3UYKJjzMouW5YuXnxWGGaM
MWIAn2oRiXYI3g5/f+1S7TKPOQjBlG86
=xy3Y
-----END PGP SIGNATURE-----



More information about the testing-in-python mailing list