[Tutor] Automating GUI Command Regression Testing
Gordon Agress
gordon.agress at gmail.com
Tue Jun 17 18:58:24 CEST 2008
<tutor at python.org>Could someone please point me to resources that would
help me learn to pipe keyboard input for commands to a Tkinter GUI, and then
to automate saving a screen shot of the resulting GUI display? Is this even
possible?
I'm trying to automate regression testing of a simple Tkinter GUI. I'd like
to supplant manual entry of keyboard commands (hotkeys like Alt-F, tabs and
arrows to move among fields and buttons, data entry, 'enter', etc) with a
file holding all that stuff, and store an image of the outcome for later
review or comparison.
Simply piping a file to the GUI didn't work, but I don't know if this is
because the pipe doesn't work or because I don't know how to properly
represent events like Alt-F or Tab in the text file. I've looked in
Programming Python and the Python Cookbook, and on the 'net, but haven't
found anything that seems helpful.
Any help would be appreciated -- I don't want to manually step through a
bunch of menu trees every time I make a change!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080617/39bf5a36/attachment.htm>
More information about the Tutor
mailing list