17

Every time I test my program, I have to input a bunch of the same keystrokes and mouse clicks.

I am looking for a tool to automate this keyboard and mouse input. Similar to a macro recorder.

The tool needs to save the clicks and keystrokes I originally input.

When I want to QA my app, I will hit a keyboard shortcut and the mouse and keyboard inputs will be played back into the system again and again.

Is this a known type of QA testing? If so, what is it called? Who are the market leaders and are there any free versions available?

pkamb
  • 33,281
  • 23
  • 160
  • 191
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374

4 Answers4

14

I have found AutoIT to be great.

It is a very powerful tool, which does more than record just mouse clicks. Using scripting, you can work with the controls in the application.

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
Jon Onstott
  • 13,499
  • 16
  • 80
  • 133
  • This is a nice tool. I compiled the macro and in my app's winform shown event handler, I placed code to run it. So now when my app runs, it runs the playback. This is a huge time saver. Very cool. Thanks. – Tony_Henrich Jul 16 '09 at 17:07
  • Great, I'm glad it's working for you. – Jon Onstott Jul 16 '09 at 17:17
  • 1
    Hi @Jon. This application looks really nice, but I can't find the feature to record my mouse clicks/keystrokes and generate the script for me. It does have that feature right? Where can I find this? – wvdz Jun 04 '15 at 08:34
  • Does this allows some kind of notification or alert if a test fails (certain conditions not met)? – Gabriel Sep 29 '20 at 15:04
10

AutoHotkey is good for this. It's free, and can do lots of stuff from simple recording to complex macros.

RichieHindle
  • 272,464
  • 47
  • 358
  • 399
2

http://www.macro-recorder.com/

This works very well for me. Even though it does cost some money to register, the demo version has full functionality with no constraints (as far as I know). It converts your mouse and keystrokes into editable text files which are really convenient.

Robert McIntyre
  • 417
  • 3
  • 9
1

I have used Perl's Win32::GuiTest for some fun, and also for serious testing. It does not record key strokes.

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339