I would like to stress test a win32 application by sending a lot of random keystrokes to it, and I wonder if anyone could point me to some software I could use. Ideally, I should be able to specify which keystrokes can be sent, and control rate (random min/max).
Definition: Monkey testing is a type of software testing in which a software or application is tested using random inputs with the sole purpose of trying and breaking the system. There are no rules in this type of testing. It completely works on the tester's mood or gut feeling and experience.
Gorilla Testing is similar to monkey testing, the only difference being that it tests particular modules, whereas monkey testing tests the system as a whole. Each module in a product is picked and random valid and invalid inputs are fed into it until the module crashes.
Ad Hoc Testing is an informal and random style of testing performed by testers who are well aware of the functioning of software. It is also referred to as Random Testing or Monkey Testing. Tester may refer existing test cases and pick some randomly to test the application.
Have a look at the Fuzz Testing of Application Reliability website of the University of Wisconsin. They did a research study some years ago to test the reliability of desktop software and on that page you find a link to their FTP site providing fuzz testing tools.
I've used the fuzz-nt tool from that site for my own tests and successfully found several bugs in our application. It has no option to choose the keyboard input values (but source is provided). Instead it lets you choose from these sources of random data:
Have a look at AutoIt. It has a COM interface, so you can script it from any language that supports COM. I've written Python scripts to automate GUIs.
I would use a macro software, like AutoIt, as jrbushell said, or AutoHotkey. They also allow random clicks... :-) Both are free.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With