Tuesday, January 5, 2010

Keyword driven testing


It is a methodology that divides Test Creation into two states
1.       Planning
2.       Testing Implementation
Planning:
During the planning stage, understanding the requirements and analyzing how to implement them.  Based on the requirements, u can determine and create those resources accordingly.  Lab setup, test script preparation and reviews are done.
Testing Implementation:
Running the test scripts on ur application, viewing the test results, debugging and troubleshooting as needed.
Creating Tests using Keyword driven methodology
U can create a test using the keyword driven methodology, which enables u to select keywords to indicate the operations u want to perform on ur application.  This enables u to create structured tests that are easier to update and maintain over time.
This methodology is very useful where both technical and less technical users are working.  Few experts can maintain the resource framework while others can design and maintain the automated test steps. 
In short, keyword driven testing is a technique that separates much of the programming work from the actual test steps so that the test steps can be developed earlier and can often be maintained with only minor updates, even when the application or testing needs change significantly.
Tests are created using Keywords and u can these keywords wherever u need.  U add objects to the Object Repository before they exist in an application or before the built is ready.  The automation infrastructure usually includes one or more shared object repositories and one or more function libraries.

Sunday, January 3, 2010

All about QTP and Automation Testing

As I have a couple of days with no work (meaningful work..!), I thought of exploring the new version of QTP. I personally feel that HP and IBM websites are very confusing with navigation. U have lot of screens, registration stuff and so on. Can these companies make the trail versions to be downloaded without any registration or account? Anyhow as I have a HP account, I started downloading the latest QTP 10 version. The size of QTP 10 version is 1.4 GB and it almost took me around 3 hours or so with my slow internet connection speed.



As always with many products, Upgrade without uninstalling previous version is available only to QTP 9.5 version and not to the earlier versions like 9.2. If u r using 9.2 or earlier versions, u have to uninstall the Quick Test Professional and install the latest QTP 10 version. But u can save and restore setting utility to save some existing customization settings and registry keys before uninstalling the old QTP versions and then restore them after you install a new version.


Installing QTP 10 version is quite easy with very few inputs from user and takes only a couple of minutes. Now also, I like the RED GUI of Mercury but HP GUI is OK. No need of booting after installing this version of QTP and can directly go on to open the application. As always, the first thing displayed will be the ‘License Warning’ window. I used the ‘continued’ button to proceed to Add-In Manager window and clicking OK here takes u to the QTP Start Page.


New features in QTP 10 version:


1.QTP 10 version has integration capabilities with new Quality Center 10 version which has powerful set of Centrally Managed, Share Testing Assets and Dependencies.


2.QTP 10 version has ‘Local System Monitoring’ which enables to monitor the client side computer resources used by the application during testing and u can customize these settings. During Test Run, If the resources exceeds the specified limits, then Test Run will fail. By this feature, u can briefly check the Performance of ur applications during Test Run. Bottle necks during the test can be found out using this tool.


3.U can save a local copy of your test, its associated resource files and any called actions on the local disk and can use them when u r not connected to the Quality Center.


4.Using the ‘LoadAndRunAction’ statement u can load an action only and run that action during Test Run.


5.U can centrally manage ur work items and to do tasks in the ‘To Do’ Pane.


6.QTP Test Result Analysis has been improved with new reporting functionality.


7.QTP 10 version supports almost all the new technologies developed in 2008 and 2009.


8.And many more enhancements for the existing features.






System Requirements for QTP 10 version:


1.Pentium III or above.


2.All 32 and 64 bit editions of windows version Operating System except Quality Center not supporting 64 bit Operating System.


3.Memory of 1GB.


4.Free Hard Disk Space of 1 GB is recommended when Add-ins are installed.


5.QTP till now only supports Internet Explorer. I hope HP comes with support to at least one or two more browsers like Opera and Google Chrome.


Regards,
Tirumalanath
tirumalanath@gmail.com
 
Disclaimer:  This stuff is all from the HP site and is blogged by me to spread awareness about QTP tool and
                   help those people who want to learn about QTP and Automation.  This material is not intended for
                   any commercial use.