[sisyphus] test-gui-dialog
Alexey Tourbin
=?iso-8859-1?q?at_=CE=C1_altlinux=2Eru?=
Сб Июл 23 01:44:00 MSD 2005
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 <at на altlinux> 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 <at на altlinux.org>.
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.
$
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20050723/fba4950f/attachment-0003.bin>
Подробная информация о списке рассылки Sisyphus