On Fri, Jul 22, 2005 at 09:05:47PM +0400, Alexey M. Tourbin wrote: > test-gui-dialog - Simple automated testing of GUI dialogs > * Thu Jul 21 2005 Alexey Tourbin 20050721-alt1 > - initial revision > - test gedit and gqview at the %build stage $ perldoc -tTF /usr/bin/test-gui-dialog NAME test-gui-dialog - simple automated testing of GUI dialogs SYNOPSIS test-gui-dialog *app* [*wname* name] [*dname* name] [*dopen* keys] [*dclose* keys] [*wclose* keys] DESCRIPTION test-gui-dialog will start application *app* and wait for application window *wname*; it will then open dialog *dname* by sending keys *dopen*, close the dialog by sending keys *dcolse*, and then will close the application window by sending keys *wclose*. Each step is logged to stderr. The exit status is zero upon success; otherwise, the script dies horribly (with non-zero exit status) on the first unsuccessful step. OPTIONS *wname* name Window name pattern; defaults to *app*. *dname* name Dialog name pattern (default "About"). *dopen* keys Key sequence to open dialog (default "%(h)a", i.e. "Alt-h a" for "Help/About"). *dclose* keys Key sequence to close dialog (default "%(c)", i.e. "Alt-c" for "Close"). *wclose* keys Key sequence to close application window (default "%(f)q", i.e. "Alt-f q" for "File/Quit"). EXAMPLES xvfb-run -a -- test-gui-dialog gedit dclose $'\n' xvfb-run -a -- test-gui-dialog gqview test-gui-dialog firefox dclose $'\n' test-gui-dialog konqueror wclose '%(l)q' BUGS Other *app* windows are unexpected and can result in an accident. Running under Xvfb appears to be problematic for certain applications (e.g. firefox and konqueror). SEE ALSO X11::GUITest, Xvfb(1), xvfb-run AUTHOR Written by Alexey Tourbin . COPYING Copyright (c) 2005 Alexey Tourbin, ALT Linux Team. This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. $