Wednesday, April 1, 2009

Windows and Web Applications Automation

The following tools can be used for automating the testing activities.

1) AutoHotKey (
http://www.autohotkey.com/) [for windows applications automation]:
Any desktop related activities can be automated. For example, open notepad, type something there etc like this.
* AutoHotkey is a free, open-source utility for Windows.
With it, you can:
* Automate almost anything (windows activities) by sending keystroke sand mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
* Also you can convert any script into an EXE file that can be run on computers that don't have AutoHotkey installed.
* If you install this, there will be a help file in the installation folder. That file has huge coverage of all usage of that application with example.
* A "windows spy" utility is very much useful while automating any windows application

2) iMacros (
http://www.iopus.com/) [for web applications automation]:
* Record & replay all web surfing activities
* Automatically fill out web forms
* Automate uploads, downloads, and data extraction etc

3) Python (
http://www.python.org/) [for various system activities and more and more!]
* Used in many big corporates like Google, NASA etc.
* Very much easy to learn for all! (even for a person who is learning a language for the first time!)
* Multi-platform, free, open source etc.
* Can convert the python files to stand-alone "exe" files. (py2exe.org)
* Very much handy for various system activities like copy files, find text in files, replace text in files, parse XLS files, create report in XLS format (http://sourceforge.net/projects/pyexcelerator) etc.
* Uses white spaces as block delimiters.
* Nice start-up/beginner tutorial is available at
http://www.ibiblio.org/swaroopch/byteofpython/files/120/byteofpython_120.pdf (a must read for beginners!)http://www.swaroopch.com/notes/Python

3) pyWinAuto (
http://pywinauto.openqa.org/) [for windows applications automation]:
* This is a third party python module.
* When u want the power of python while automating the windows applications, this is a fine choice.
* A simple video describes the basic introduction and usage of this python module
http://showmedo.com/videos/video?name=UsingpyWinAutoToControlAWindowsApplication(use head phone)

Similar things are,
1) Watir (
http://wtr.rubyforge.org/) : for web applications automation
2) Apache JMeter (
http://jakarta.apache.org/jmeter) : for load testing
Quick start link (recording the test): http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf
3) htmlunit (http://htmlunit.sourceforge.net/) : for web application testing automation

It may be extremely useful in automating the day today activities which will make the work easier.

No comments:

Followers