On Wed, Aug 01, 2001 at 09:41:48AM -0400, Carl Rogers wrote:

> Don't know if this is possible, but I'm trying to find out if it is 
> possible to write a Perl script that can "mimic" user input.

You'll need to be more specific about your platform and windowing
software.  Are you testing a Perl program?

> I'm trying to write a scenario in which a user responds to a pop-up window 
> then hits the "enter" button. Following that, the user populates different 
> fields (navigating between them via the tab key), then hits the enter 
> button. This is done several times.

This is typically done by having someone perform the task once,
capturing the event and responses, then replaying the events and
ensuring the responses match.  Of course, it is far more complicated
than this, depending on your platform and what you are actually testing.

Alternatively, you can separate the gui from the underlying core and
test the core as you would any other program.  Actually, that's not an
alternative.  You should do it anyway, but you still need to test the
gui.  And the hard part of that is often ignoring trivial changes, such
as customisable colours and fonts, minor layout changes etc.

> I apologize if this is inappropriate: I'm constantly amazed by the genius 
> that populates this list, so I thought if it could be done using Perl, 
> someone from this list would know how. (I try to do as much as I can in Perl)

Well, Perl is a language like any other.  If it can be done in language
X, it can be done in Perl.  Whether or not it should be is often another
question, and the answer typically depends on many factors, not all of
them technical, unfortunately.

> On the other hand, if there is a different tool out there that will help me 
> accomplish this, I would appreciate knowing about it.

There are various gui testing tools around, of various standards.  Your
platform?

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to