Re: Automated user-interaction regression testing tools?
Re: Automated user-interaction regression testing tools?
- Subject: Re: Automated user-interaction regression testing tools?
- From: Ricky Sharp <email@hidden>
- Date: Sat, 1 Dec 2001 09:55:47 -0600
On Saturday, December 1, 2001, at 06:18 AM, Finlay Dobbie wrote:
On Saturday, December 1, 2001, at 03:22 am, Mason Mark wrote:
We're looking for something that will allow us to record and play back
mouse actions and keystrokes, so that we can store long sequences of
user-GUI interactions and incorporate them into our regression testing
system.
I'm not sure how to record them, but you can synthesise events via the
CoreGraphics API. See CGRemoteOperation.h
That's a good place to start. Although, I think that if the app is
completely scriptable and recordable (AppleScript), that would potentially
give you a killer setup. Plus, your users would most likely benefit too
from having that capability with the app.
For my Carbon apps, I do have an automated testing system that is based
off a simple timer. Every n ms, an entry is read from an input file
(basically an op code). Most op codes deal with "messages" that are to be
sent to the app. Other op codes provide a query mechanism to ensure the
app is in a valid state. It didn't take me long at all to come up with
this code...about 4 days total maybe and the concepts could definitely be
applied to a Cocoa app.
Hopefully the solution you choose would allow your scripts to work
independent of monitor settings. Also, if you change the layout of some
of your widgets on the screen, you may have to alter your scripts if they
deal with set physical locations. A good scripting solution allows you to
post events to widgets regardless of where that widget is physically
located.
------------------------------------------------------------
Ricky A. Sharp Instant Interactive(tm)
Founder & President <
http://www.instantinteractive.com>
<
mailto:email@hidden>
------------------------------------------------------------