From: Alexey Tourbin <at@altlinux.ru>
To: sisyphus@altlinux.org
Subject: [sisyphus] test-gui-dialog
Date: Sat, 23 Jul 2005 01:44:00 +0400
Message-ID: <20050722214400.GV24898@solemn.turbinal.org> (raw)
In-Reply-To: <20050722170547.6AACCB0D90@basalt.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2233 bytes --]
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.
$
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-07-22 21:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 17:05 [sisyphus] I: Sisyphus-20050722 packages: +10! +15 (4514) Alexey M. Tourbin
2005-07-22 21:44 ` Alexey Tourbin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050722214400.GV24898@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=sisyphus@altlinux.org \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git