From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 23 Jul 2005 01:44:00 +0400 From: Alexey Tourbin To: sisyphus@altlinux.org Message-ID: <20050722214400.GV24898@solemn.turbinal.org> Mail-Followup-To: sisyphus@altlinux.org References: <20050722170547.6AACCB0D90@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yYeq/WQYi/kuVVbm" Content-Disposition: inline In-Reply-To: <20050722170547.6AACCB0D90@basalt.office.altlinux.org> Cc: Subject: [sisyphus] test-gui-dialog X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 21:45:05 -0000 Archived-At: List-Archive: --yYeq/WQYi/kuVVbm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. $ --yYeq/WQYi/kuVVbm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFC4WigfBKgtDjnu0YRAjTZAKCL6pw/CwDpzXv1bJmubfbLIEhujwCggle/ H/eZLuQ+LSn0S6fF/4dHbTc= =wlyX -----END PGP SIGNATURE----- --yYeq/WQYi/kuVVbm--