[Tkinter-discuss] GUI testing

Guilherme Polo ggpolo at gmail.com
Wed Nov 12 17:45:43 CET 2008

On Wed, Nov 12, 2008 at 2:37 PM, Allen Taylor
<Allen.Taylor at mdacorporation.com> wrote:
> Hello all,
> I've got a Python/Tkinter application that I'd like to automate GUI testing
> for. I found Dogtail, but it requires the GUI app to be "AT-SPI-aware". I
> see that there is a binding from Python to AT-SPI (Python atspi package;
> this is what Dogtail uses to control the app). Has anyone done
> any development to make this work with Tkinter apps? Or, is there another
> method by which I can automate GUI testing of my Python/Tk app?

I have used the standard unittest way to test ttk widgets. tests for
python 2.x can be found at
http://svn.python.org/view/sandbox/trunk/ttk-gsoc/src/2.x/test/ right
now, soon (like a week maybe) I will be moving that to another branch.
It simulates some mouse clicks in some very specific areas, but could
be expanded. Maybe you can use some part of it as a basis for
something else ? But I don't know what kind of things you want to test
for specifically, so these tests may not work for you.

> Many thanks.
> Allen B. Taylor
> 9445 Airport Road
> Brampton, ON  L6S 4J3
> 905-790-2800 ext. 4350
> allen.taylor at mdacorporation.com
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss

-- Guilherme H. Polo Goncalves

More information about the Tkinter-discuss mailing list